Indhumathi27 opened a new pull request #3337: [CARBONDATA-3478]Fix 
ArrayIndexOutOfBound Exception on compaction after alter operation
URL: https://github.com/apache/carbondata/pull/3337
 
 
   **Problem:**
   Please check 
[JIRA-CARBONDATA-3478](https://issues.apache.org/jira/browse/CARBONDATA-3478) 
to reproduce the issue
   After table rename operation, carbon table will be updated with lastmodified 
timestamp.
   On compaction operation, we will check for if restructuredBlockExists by 
comparing the tableLastModifiedTime and schemaLastModifiedTime of each block.
   In the example given in JIRA, restructuredBlockExists was true for first 
block, which was wrong.
   
   **Solution:**
   After comparing tableLastModifiedTime and schemaLastModifiedTime of each 
block, check if size of columnSchema in carbontable and footer of block is same 
or not. If same, then return false. Else, for restructuredBlockExists will be 
true [in case of add/drop column operation]
   
    - [ ] Any interfaces changed?
    
    - [ ] Any backward compatibility impacted?
    
    - [ ] Document update required?
   
    - [x] Testing done
         Added
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to