-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57566/
-----------------------------------------------------------

(Updated March 13, 2017, 8:33 p.m.)


Review request for hive.


Bugs: HIVE-16189
    https://issues.apache.org/jira/browse/HIVE-16189


Repository: hive-git


Description
-------

If the table rename does not succeed due to its failure in moving the data to 
the new renamed table folder, the changes in TAB_COL_STATS are not rolled back 
which leads to invalid column stats.

This patch changes the order of metadata update and data move in alter table 
rename operation, which makes it easier to roll back metadata changes when 
moving data fails in rename a table.


Diffs (updated)
-----

  metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java 
bae39ac 


Diff: https://reviews.apache.org/r/57566/diff/2/

Changes: https://reviews.apache.org/r/57566/diff/1-2/


Testing
-------


Thanks,

Chaoyu Tang

Reply via email to