nastra commented on code in PR #9890:
URL: https://github.com/apache/iceberg/pull/9890#discussion_r1516582194


##########
core/src/main/java/org/apache/iceberg/inmemory/InMemoryCatalog.java:
##########
@@ -395,7 +395,9 @@ public void doCommit(TableMetadata base, TableMetadata 
metadata) {
       String oldLocation = base == null ? null : base.metadataFileLocation();
 
       synchronized (InMemoryCatalog.this) {
-        if (null == base && !namespaceExists(tableIdentifier.namespace())) {
+        if (null == base
+            && !namespaceExists(tableIdentifier.namespace())
+            && !tableIdentifier.namespace().isEmpty()) {

Review Comment:
   that's similar to how it's done in 
https://github.com/apache/iceberg/blob/2446cee5cf0ad93a2be9a68f0b2f7f6fa6edb865/core/src/main/java/org/apache/iceberg/inmemory/InMemoryCatalog.java#L141
 where the empty namespace is allowed for listing



-- 
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...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to