rdblue commented on a change in pull request #1156:
URL: https://github.com/apache/iceberg/pull/1156#discussion_r451895218



##########
File path: core/src/main/java/org/apache/iceberg/BaseMetastoreCatalog.java
##########
@@ -110,9 +110,17 @@ public Transaction newReplaceTableTransaction(
       throw new NoSuchTableException("No such table: " + identifier);
     }
 
-    String baseLocation = location != null ? location : 
defaultWarehouseLocation(identifier);
     Map<String, String> tableProperties = properties != null ? properties : 
Maps.newHashMap();
-    TableMetadata metadata = TableMetadata.newTableMetadata(schema, spec, 
baseLocation, tableProperties);
+
+    TableMetadata metadata;
+    if (ops.current() != null) {

Review comment:
       It would probably wipe out column comments. I'll have to fix that.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to