hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhenxiao Luo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2874) Renaming external partition changes location
Date Sun, 30 Sep 2012 04:57:07 GMT

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

Zhenxiao Luo commented on HIVE-2874:
------------------------------------

if it is an EXTERNAL_TABLE, the table's location is in StorageDescriptor, the new patch shares
the same parent path as the old path.

If it is a MANAGED_TABLE, the table's location could be get from Warehouse.
                
> Renaming external partition changes location
> --------------------------------------------
>
>                 Key: HIVE-2874
>                 URL: https://issues.apache.org/jira/browse/HIVE-2874
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Kevin Wilfong
>
> Renaming an external partition will change the location of that partition to the default
location of a managed partition with the same name.
> E.g. If ex_table is external and has partition part=1 with location /.../managed_table/part=1
> Calling ALTER TABLE ex_table PARTITION (part = '1') RENAME TO PARTITION (part = '2');
> Will change the location of the partition to /.../ex_table/part=2

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

Mime
View raw message