ShreelekhyaG opened a new pull request #4215:
URL: https://github.com/apache/carbondata/pull/4215


    ### Why is this PR needed?
   Insert after alter add column on partition table with complex column fails 
with bufferUnderFlowException 
   List of columns order in `TableSchema `is different after alter add column.
   Ex: If partition is of dimension type, when table is created the schema 
columns order is as
    dimension columns(partition column also) + complex column
   After alter add, we are changing the order of columns in schema by moving 
the partition column to last.
   complex column + partition column
   Due to this change in order, while `fillDimensionAndMeasureDetails`, the 
indexing is wrong as it expects complex column to be last always which causes 
bufferUnderFlowException while flattening complex row.
    
    ### What changes were proposed in this PR?
   After alter add, removed changes to add partition column at last. 
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - Yes
   
       
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to