----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57566/ -----------------------------------------------------------
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 ----- metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java bae39ac Diff: https://reviews.apache.org/r/57566/diff/1/ Testing ------- Thanks, Chaoyu Tang