dengzhhu653 commented on code in PR #6967:
URL: https://github.com/apache/hive/pull/6967#discussion_r4650101261
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java:
##########
@@ -153,6 +153,9 @@ public void alterTable(RawStore msdb, Warehouse wh, String
catName, String dbnam
boolean success = false;
boolean dataWasMoved = false;
boolean isPartitionedTable = false;
+ // Location of the new table as passed in by the caller, kept so it can be
put back on failure.
+ String originalNewLocation = null;
Review Comment:
Nice catch! can you try create a new table by `newt.deepCopy()` at the
beginning?
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java:
##########
@@ -153,6 +153,9 @@ public void alterTable(RawStore msdb, Warehouse wh, String
catName, String dbnam
boolean success = false;
boolean dataWasMoved = false;
boolean isPartitionedTable = false;
+ // Location of the new table as passed in by the caller, kept so it can be
put back on failure.
+ String originalNewLocation = null;
Review Comment:
Nice catch! can you try creating a new table by `newt.deepCopy()` at the
beginning?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]