Skip to content

HadoopCatalog can't list toplevel tables #7130

@caobinzi

Description

@caobinzi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions