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


##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieIcebergClient.java:
##########
@@ -270,6 +270,15 @@ public List<Namespace> listNamespaces(Namespace namespace) 
throws NoSuchNamespac
       } else {
         org.projectnessie.model.Namespace root =
             org.projectnessie.model.Namespace.of(namespace.levels());
+        Content existing =
+            api.getContent()
+                .reference(getReference())
+                .key(root.toContentKey())
+                .get()
+                .get(root.toContentKey());
+        if (existing == null) {
+          throw new NoSuchNamespaceException("Namespace %s does not exist!", 
namespace);
+        }

Review Comment:
   please add a newline after }



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