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

    ### Why is this PR needed?
    Create MV fails with "LOCAL_DICTIONARY_INCLUDE/LOCAL _DICTIONARY_EXCLUDE 
column: does not exist in table. Please check the DDL" error.
   Error occurs only in this scenario: Create Table --> Load --> Alter Add 
Columns --> Drop table --> Refresh Table --> Create MV
   and not in direct scenario like:  Create Table --> Load --> Alter Add 
Columns  --> Create MV
    
    ### What changes were proposed in this PR?
   1. After add column command, LOCAL_DICTIONARY_INCLUDE and 
LOCAL_DICTIONARY_EXCLUDE properties are added to the table even if the columns 
are empty. So, when MV is created next as LOCAL_DICTIONARY_EXCLUDE column is 
defined it tries to access its columns and fails. --> Added empty check before 
adding properties to the table to resolve this.
   2. In a direct scenario after add column, the schema gets updated in catalog 
table but the table properties are not updated. Made changes to update table 
properties to catalog table.
            
       
    ### 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: dev-unsubscr...@carbondata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to