zhongyujiang commented on code in PR #3843:
URL: https://github.com/apache/paimon/pull/3843#discussion_r1703225745


##########
paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java:
##########
@@ -767,7 +781,11 @@ private void updateHmsTable(Table table, Identifier 
identifier, TableSchema sche
         }
 
         // update location
-        locationHelper.specifyTableLocation(table, 
getDataTableLocation(identifier).toString());
+        String location =
+                schema.options().containsKey(CoreOptions.PATH.key())
+                        ? schema.options().get(CoreOptions.PATH.key())
+                        : getDataTableLocation(identifier).toString();
+        locationHelper.specifyTableLocation(table, location);

Review Comment:
   If provided, use the table path provided by the user.



-- 
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: issues-unsubscr...@paimon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to