ajantha-bhat opened a new pull request #3577: [HOTFIX] Fix After alter table 
add column schemaOrdinal is not continuous
URL: https://github.com/apache/carbondata/pull/3577
 
 
    ### Why is this PR needed?
    Consider a scenario with complex columns[c1 int, c2 array<int>, c3 
array<int>] here schema ordinal of child columns are -1. so c1, c2, c3 has 
ordinal 0, 1, 2. After alter table add column "c4 int", its ordinal should be 
3. But currently it is 6 (due to flat column schema).
   This will give problem when this ordinal is  referred for some other 
functionality like rearrange projection columns.
    
    ### What changes were proposed in this PR?
   make schema ordinal continuous by collecting previous schema ordinal max. 
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - No
   
      

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