nastra commented on code in PR #8533:
URL: https://github.com/apache/iceberg/pull/8533#discussion_r1526358902
##########
aws/src/main/java/org/apache/iceberg/aws/glue/GlueCatalog.java:
##########
@@ -286,8 +286,12 @@ protected String defaultWarehouseLocation(TableIdentifier
tableIdentifier) {
}
@Override
- public List<TableIdentifier> listTables(Namespace namespace) {
- namespaceExists(namespace);
+ public List<TableIdentifier> listTables(Namespace namespace) throws
NoSuchNamespaceException {
Review Comment:
can you please add some tests for empty namespaces. Those should check the
following:
* create / drop / namespace existence when given an empty namespace
* list namespaces via `listNamespaces()` and via
`listNamespaces(Namespace.empty())`
* loading namespace metadata when given an empty namespace
I think it's currently not fully clear how empty namespaces are handled and
it would be good to add these tests and have a consistent behavior when dealing
with empty namespaces. This is mainly so that the check in this method does the
right thing when an empty namespace is passed to `listTables()`
--
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]