caobinzi opened a new issue, #7130:
URL: https://github.com/apache/iceberg/issues/7130
### Apache Iceberg version
1.1.0 (latest release)
### Query engine
Other
### Please describe the bug 🐞
In the `HadoopCatalog` class, the `listTables` api can't list top level
tables, this seems a bug of the api, as iceberg allows user to create table
without `namespace/databse`, the check needs to be removed to support querying
toplevel tables
`
public List<TableIdentifier> listTables(Namespace namespace) {
Preconditions.checkArgument(
namespace.levels().length >= 1, "Missing database in table
identifier: %s", namespace);
`
https://github.com/apache/iceberg/blob/apache-iceberg-1.1.0/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java#L189-L191
--
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]