[ 
https://issues.apache.org/jira/browse/HIVE-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HIVE-4095:
------------------------------

    Attachment: HIVE-4095.D10155.1.patch

sindheeraj requested code review of "HIVE-4095 [jira] Add exchange partition in 
Hive".

Reviewers: JIRA

Add exchange partition to hive

This diff adds an exchange partition feature to hive. The command is of the 
following format:
ALTER TABLE <source_table_name> EXCHANGE PARTITION <partition> WITH TABLE 
<dest_table_name>
This only works if <source_table_name> and <dest_table_name> have the same 
field schemas and the same partition by parameters. If they do no the command 
will throw an exception. This will take the partition from <partition> from 
<source_table_name> and will do an HDFS rename of the partition folder so that 
the partition now belongs to <dest_table_name>. It will also change the 
metadata to show that partition of <source_table_name> has been deleted and 
added to <dest_table_name>.

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D10155

AFFECTED FILES
  .gitignore
  metastore/if/hive_metastore.thrift
  metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
  metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
  metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
  metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
  metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableExchangePartition.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/test/queries/clientnegative/exchange_partition_neg_partition_exists.q
  ql/src/test/queries/clientnegative/exchange_partition_neg_partition_missing.q
  ql/src/test/queries/clientnegative/exchange_partition_neg_table_missing.q
  ql/src/test/queries/clientnegative/exchange_partition_neg_table_missing2.q
  ql/src/test/queries/clientnegative/exchange_partition_neg_test.q
  ql/src/test/queries/clientpositive/exchange_partition.q
  ql/src/test/queries/clientpositive/exchange_partition2.q
  
ql/src/test/results/clientnegative/exchange_partition_neg_partition_exists.q.out
  
ql/src/test/results/clientnegative/exchange_partition_neg_partition_missing.q.out
  ql/src/test/results/clientnegative/exchange_partition_neg_table_missing.q.out
  ql/src/test/results/clientnegative/exchange_partition_neg_table_missing2.q.out
  ql/src/test/results/clientnegative/exchange_partition_neg_test.q.out
  ql/src/test/results/clientpositive/exchange_partition.q.out
  ql/src/test/results/clientpositive/exchange_partition2.q.out

MANAGE HERALD RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/24267/

To: JIRA, sindheeraj

                
> Add exchange partition in Hive
> ------------------------------
>
>                 Key: HIVE-4095
>                 URL: https://issues.apache.org/jira/browse/HIVE-4095
>             Project: Hive
>          Issue Type: New Feature
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Dheeraj Kumar Singh
>         Attachments: HIVE-4095.1.patch.txt, HIVE-4095.D10155.1.patch, 
> HIVE-4095.D10155.2.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to