GitHub user ravipesala opened a pull request:

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

    [CARBONDATA-1860][PARTITION] Support insertoverwrite for a specific 
partition.

    User should able to overwrite partition for a specific partition. Like
    INSERT OVERWRITE TABLE partitioned_user
          PARTITION (country = 'US')
          SELECT * FROM another_user au 
          WHERE au.country = 'US';
    In the above example, the user can overwrite only the partition(country = 
'US') data. So remaining partitions data would be intact.
    While overwriting a specific partition carbon should first load data to the 
new segment and drop that partition from all remaining segments using 
partition.map file.
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [X] Any interfaces changed? NO
     
     - [X] Any backward compatibility impacted? NO
     
     - [X] Document update required? YES
    
     - [X] Testing done
           Tests added
     - [X] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    


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

    $ git pull https://github.com/ravipesala/incubator-carbondata 
partition-overwrite

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

    https://github.com/apache/carbondata/pull/1677.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 #1677
    
----
commit 8c0673f4a8b526f665087366bf3ac4be9a19e9c0
Author: ravipesala <[email protected]>
Date:   2017-12-18T17:07:59Z

    Added support to read partitions

commit 33f61d756ec49e19ff01e646ccc70af5824a3e8e
Author: ravipesala <[email protected]>
Date:   2017-12-16T17:08:00Z

    Added drop partition feature

commit 9ef28c86b457c0b9ea066912f80745b11733b547
Author: ravipesala <[email protected]>
Date:   2017-12-19T07:49:15Z

    Support insert overwrite partition

----


---

Reply via email to