hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefty Leverenz (JIRA)" <>
Subject [jira] [Commented] (HIVE-4095) Add exchange partition in Hive
Date Tue, 12 Nov 2013 07:01:21 GMT


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 []
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:
>             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

View raw message