Skip to content

catalog_name is hardcode in rest fixture, causing interoperability issue (with trino & pyiceberg) #14972

@mannerni

Description

@mannerni

Apache Iceberg version

1.10.0

Query engine

Trino

Please describe the bug 🐞

Hi, I was testing the interoperability of catalogs for read-write from different engines like trino & pyiceberg.
When a catalog is created using trino & iceberg rest catalog (i.e. its rest fixture docker image) the default catalog_name is set to = "rest_backend", whereas we can set the catalog name to user defined/configurable from pyiceberg.
We need ability to set/override the catalog_name in rest-fixture to allow access to catalog name that is created by say ex: pyiceberg or any other engine.
Can we have environment variable to set the catalog name, thereby interoperability can be enabled as one of the key desired use-case of Open Table Format?

Assuming this is the reference code associated to catalog name:
https://github.com/apache/iceberg/blob/main/open-api/src/testFixtures/java/org/apache/iceberg/rest/RESTCatalogServer.java#L101

CAHDATA: created from pyiceberg & rest_backend is set default in iceberg rest fixture.
Image

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions