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