Anurag-S1ngh opened a new pull request, #4511: URL: https://github.com/apache/iceberg-python/pull/4511
# Rationale for this change Closes #4096. When `rest-page-size` is set, `list_namespaces`, `list_tables`, and `list_views` sent `pageSize` without `pageToken` on the first request. The REST spec says a request without `pageToken` returns all results in one response, so compliant servers ignored `rest-page-size`, and some servers failed with a `NumberFormatException`. The first request now sends an empty `pageToken` to opt in to pagination, matching the Java client. Blank query values are kept when signing with SigV4 so the signed query matches the request that is sent. ## Are these changes tested? Yes. Updated the existing page size tests and added coverage for the first and subsequent pages, plus a SigV4 test that checks the blank `pageToken` survives signing. `tests/catalog/test_rest.py` passes with 199 tests, and `uv run prek run --files pyiceberg/catalog/rest/__init__.py tests/catalog/test_rest.py` passes. ## Are there any user-facing changes? No API changes. Pagination now works when `rest-page-size` is configured. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
