nastra commented on code in PR #12901:
URL: https://github.com/apache/iceberg/pull/12901#discussion_r2086049916
##########
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:
```suggestion
throw new NoSuchNamespaceException("Namespace does not exist: %s",
namespace);
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]