Skip to content

HIVE-29878: HMS REST Catalog ignores pagination for listTables and listNamespaces - #6750

Open
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29878
Open

HIVE-29878: HMS REST Catalog ignores pagination for listTables and listNamespaces#6750
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29878

Conversation

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR updates HMSCatalogAdapter to correctly extract pageToken and pageSize query parameters for the listNamespaces and listTables REST routes. If either parameter is present, it routes the request to the overloaded, pagination-aware CatalogHandlers methods.

Why are the changes needed?

Iceberg Rest Catalog Spec supports it as follows and this helps in catalog contains large number of tables.

  1. https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L250-L269
  2. https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L525-L538

Does this PR introduce any user-facing change?

NO

How was this patch tested?

@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants