nastra commented on issue #8121:
URL: https://github.com/apache/iceberg/issues/8121#issuecomment-1645244034

   > I was using a customized catalog that on load throws 
NoSuchNamespaceException when the Namespace component of a TableIdentifier is 
not found. Only when namespace exists, will it check the table and throws 
NoSuchTableException if the table is not found.
   
   > IMO this behavior respects the Catalog.java API
   
https://github.com/apache/iceberg/blob/master/api/src/main/java/org/apache/iceberg/catalog/Catalog.java#L326
   
   I don't think your assumption here is correct. `Catalog.loadTable()` only 
states `@throws NoSuchTableException if the table does not exist` and doesn't 
say anything about throwing a `NoSuchNamespaceException`. This is also the 
behavior that is implemented in 
[BaseMetastoreCatalog.loadTable()](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/BaseMetastoreCatalog.java#L43-L69).


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

Reply via email to