Skip to content

HiveCatalog: add method to get current metadata location for a given table identifier #13800

@henrib

Description

@henrib

Feature Request / Improvement

WHAT
Add a method to get current the metadata location for a given table identifier.
WHY
To verify if a Table object points to the latest version known, the path to the actual metadata file location is the source of truth. This is useful for server-side caching to detect stale versions and/or implement an eTag/conditional reload (by digesting location to create the eTag for instance).
HOW
Adding that method to HiveCatalog that queries the underlying HMS Store; if the table does not exist or is not an Iceberg table, return null otherwise the metadata file location.

Query engine

Hive

Willingness to contribute

  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementPR that improves existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions