[ https://issues.apache.org/jira/browse/HIVE-2874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467404#comment-13467404 ]
Zhenxiao Luo commented on HIVE-2874: ------------------------------------ @Namit: My understanding in the old patch is incorrect. So, if an external table's partition is renamed, its location should not change, but I could do select/where using the new partition name. Correct me if my understanding is still wrong. I also updated my patch at: https://reviews.facebook.net/D5751 > 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 > Assignee: Zhenxiao Luo > Attachments: HIVE-2874.1.patch.txt, HIVE-2874.2.patch.txt > > > 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