Skip to content

Cannot use IcebergCatalogProvider with a Glue catalog that contains mixed types of tables #2571

@CTTY

Description

@CTTY

Apache Iceberg Rust version

None

Describe the bug

When using IcebergCatalogProvider with GlueCatalog. IcebergTableProvider will eagerly load the table and put them into IcebergTableProviders. But a Glue catalog may contain non-iceberg tables, causing the catalog initialization to fail with DataInvalid => No 'metadata_location' set on table

LOC to load iceberg table: https://github.com/apache/iceberg-rust/blob/main/crates/integrations/datafusion/src/schema.rs#L78

We should have Glue catalog to only return iceberg tables when list_tables, this matches what pyiceberg does: https://github.com/apache/iceberg-python/blob/main/pyiceberg/catalog/glue.py#L892

To Reproduce

No response

Expected behavior

No response

Willingness to contribute

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions