mchades commented on code in PR #9008:
URL: https://github.com/apache/gravitino/pull/9008#discussion_r2488590837
##########
lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNamespaceWrapper.java:
##########
@@ -356,6 +358,12 @@ private CreateNamespaceResponse createOrUpdateCatalog(
}
}
+ private Map<String, String> removeInUseProperty(Map<String, String>
properties) {
+ return properties.entrySet().stream()
+ .filter(e -> !e.getKey().equalsIgnoreCase(Catalog.PROPERTY_IN_USE))
+ .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+ }
+
Review Comment:
It's used to remove the `in-use` property from the old catalog when creating
a catalog namespace with `overwrite` mode.
Because we use `removeOldCatalogProperty` and `setNewCatalogProperty` to
achieve this, the `in-use` property in the catalog is reserved and cannot be
used in `removePropertyChange`.
--
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]