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

Phabricator updated HIVE-2875:
------------------------------

    Attachment: HIVE-2875.D2349.2.patch

kevinwilfong updated the revision "HIVE-2875 [jira] Renaming partition changes 
partition location prefix".
Reviewers: JIRA, njain

  I modified my approach.  Now the partition's new location consists of the 
scheme and authority of the original location, and the path of the default 
location using the partition's new name.  This is similar to what is done for 
partition's locations when a table is renamed.  I ran the tests and they now 
pass.

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

AFFECTED FILES
  metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
  ql/src/test/results/clientpositive/rename_partition_location.q.out
  
ql/src/test/org/apache/hadoop/hive/ql/hooks/VerifyPartitionIsNotSubdirectoryOfTableHook.java
  ql/src/test/queries/clientpositive/rename_partition_location.q

                
> Renaming partition changes partition location prefix
> ----------------------------------------------------
>
>                 Key: HIVE-2875
>                 URL: https://issues.apache.org/jira/browse/HIVE-2875
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>         Attachments: HIVE-2875.D2349.1.patch, HIVE-2875.D2349.2.patch
>
>
> Renaming a partition changes the location of the partition to the default 
> location of the table, followed by the partition specification.  It should 
> just change the partition specification of the path.
> If the path does not end with the old partition specification, we should 
> probably throw an exception because renaming a partition should not change 
> the path so dramatically, and not changing the path to reflect the new 
> partition name could leave the partition in a very confusing state.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to