Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The REST catalog client omits the pagination parameter on the first namespace or table listing request and sends
page_tokenon continuation requests. A conforming server returns all results at once when the parameter is absent; a server that returns a continuation token may ignore the misspelled parameter and keep returning the first page.Use
pageToken=to request the first page and pass eachnext-page-tokenback aspageToken, as specified in the Iceberg REST Catalog OpenAPI spec. Reject repeated tokens so a malformed response cannot trap the client in a pagination loop.Related to #273 (REST Catalog specification tracking).
Verification
pre-commit run --all-filespassed.iceberg_rest_staticandrest_catalog_testlocally on macOS. All three new pagination regression tests passed.rest_catalog_testsuite reported 574 passed, 1 skipped, and 3 OAuth2 failures. The same three failures reproduced on the unmodified base (e8591ae):TableSessionCacheKeyTest.ExchangedSessionsAreKeyedByActor,TableSessionCacheKeyTest.SessionsAreKeyedByFlowAndTokenType, andRestCatalogOAuth2UriTest.TrustsServerOverridesWhenExplicitlyEnabled.AI assistance
OpenAI Codex helped verify the specification, implement the fix, write the regression tests, and draft this description. This PR is a draft for contributor review.