You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Lefty Leverenz (JIRA)" <ji...@apache.org> on 2013/11/12 08:01:21 UTC

[jira] [Commented] (HIVE-4095) Add exchange partition in Hive

    [ https://issues.apache.org/jira/browse/HIVE-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819885#comment-13819885 ] 

Lefty Leverenz commented on HIVE-4095:
--------------------------------------

Now that Hive 0.12 is released I'd like to put this in the DDL wikidoc, but need clarification of the syntax.  The existing wikidoc [https://cwiki.apache.org/confluence/display/Hive/Exchange+Partition] has two examples of "{{alter table T1 exchange partition (ds='1') with table T2}}" and says:

bq. moves the data from T2 to T1@ds=1. ... 

But this JIRA gives the syntax as "{{ALTER TABLE <source_table_name> EXCHANGE PARTITION <partition> WITH TABLE <dest_table_name>}}" which contradicts the doc, and explains: 

bq. 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>.

Can I assume the doc is wrong and the JIRA is correct?

> 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
>             Fix For: 0.12.0
>
>         Attachments: HIVE-4095.D10155.1.patch, HIVE-4095.D10155.2.patch, HIVE-4095.D10347.1.patch, HIVE-4095.part11.patch.txt, HIVE-4095.part12.patch.txt, hive.4095.1.patch, hive.4095.refresh.patch, hive.4095.svn.thrift.patch, hive.4095.svn.thrift.patch.refresh
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)