-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57566/
-----------------------------------------------------------
(Updated March 15, 2017, 1:58 a.m.)
Review request for hive.
Changes
-------
Fixed the failed tests and add a new unit test.
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
ql/src/test/queries/clientpositive/encryption_move_tbl.q 7a5de7b
ql/src/test/results/clientpositive/encrypted/encryption_move_tbl.q.out
cc363ac
Diff: https://reviews.apache.org/r/57566/diff/4/
Changes: https://reviews.apache.org/r/57566/diff/3-4/
Testing
-------
Thanks,
Chaoyu Tang