You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ravindra Pesala (JIRA)" <ji...@apache.org> on 2017/12/05 16:53:01 UTC

[jira] [Created] (CARBONDATA-1860) Support insertoverwrite for a specific partition.

Ravindra Pesala created CARBONDATA-1860:
-------------------------------------------

             Summary: Support insertoverwrite for a specific partition.
                 Key: CARBONDATA-1860
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1860
             Project: CarbonData
          Issue Type: Sub-task
            Reporter: Ravindra Pesala


User should able to overwrite partition for a specific partition. Like

{code}
INSERT OVERWRITE TABLE partitioned_user
      PARTITION (country = 'US')
      SELECT * FROM another_user au 
      WHERE au.country = 'US';
{code}

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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)