GitHub user akashrn5 opened a pull request:

    https://github.com/apache/carbondata/pull/3027

    [CARBONDATA-3202]update the schema to session catalog after add column, 
drop column and column rename

    ### Why this PR?
    
    **Problem:**For alter table rename, once we change the table name in 
carbon, we fire alter table rename DDL using hive client. But for add, drop and 
column rename Spark does not support there features, but hive supports. so 
after rename, or add or drop column, the new updated schema is not updated in 
catalog.
    
    **Solution:**We can directly call the spark API **alterTableDataSchema** by 
passing the updated schema, which in turn updates the shema in sessioncatalog
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [x] Any interfaces changed?
     YES
     - [x] Any backward compatibility impacted?
     NA
     - [x] Document update required?
    NA
     - [x] Testing done
    tested in three node cluster for various spark versions
            Please provide details on 
            - Whether new unit test cases have been added or why no new tests 
are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance 
test report.
            - Any additional information to help reviewers in testing this 
change.
           
     - [x] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    NA


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akashrn5/incubator-carbondata addcolumn

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/3027.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3027
    
----
commit ee78136e55b309a4521914fdee57adf59cda8531
Author: akashrn5 <akashnilugal@...>
Date:   2018-12-27T06:01:44Z

    update the schema to session catalog after add column, drop column and 
column rename

----


---

Reply via email to