dimas-b commented on code in PR #2735:
URL: https://github.com/apache/polaris/pull/2735#discussion_r2402831611


##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -1566,14 +1566,19 @@ public void doCommit(TableMetadata base, TableMetadata 
metadata) {
               "Generic table with same name already exists: %s", 
tableIdentifier);
         }
       }
+      Map<String, String> storedProperties = 
buildTableMetadataPropertiesMap(metadata);
       IcebergTableLikeEntity entity =
           IcebergTableLikeEntity.of(resolvedPath == null ? null : 
resolvedPath.getRawLeafEntity());
       String existingLocation;
       if (null == entity) {
         existingLocation = null;
         entity =
             new IcebergTableLikeEntity.Builder(
-                    PolarisEntitySubType.ICEBERG_TABLE, tableIdentifier, 
newLocation)
+                    PolarisEntitySubType.ICEBERG_TABLE,
+                    tableIdentifier,
+                    Map.of(),

Review Comment:
   Good point, TIL :thinking: However, having this kind of effects in the 
codebase it pretty risky in the long term maintenance perspective, IMHO. Would 
it be reasonable to refactor the builders / related code to allow for more 
intuitive usage (in another PR, of course).



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

Reply via email to