Repository navigation
Conversation
Explicitly request pagination for configured page sizes and preserve blank query values in SigV4 signing.
def25d5 to
a0cb2b7
Compare
Pin the unchanged request shape for list_tables, list_views and list_namespaces without rest-page-size, since requests-mock matches extra query params by default.
0087a37 to
65fa260
Compare
|
Hi @ebyhr @kevinjqliu, sorry for the ping. This is a small follow-up to the REST pagination work in #3377. I noticed the issue while using Cloudflare R2, and it also seems related to apache/iceberg#13119. Since you were both involved, would you mind taking a look when you have a chance? Thanks! |
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
|
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
Closes #4096
Rationale for this change
When
rest-page-sizeis set, the first list request sendspageSizewithoutpageToken. Per the REST spec, servers return all results in one response whenpageTokenis not set, so the page size is ignored, and some servers (e.g.tabulario/iceberg-rest:1.6.0) fail on the request.list_tables,list_viewsandlist_namespacesnow send an emptypageTokenon the first request whenrest-page-sizeis set:Requests without
rest-page-sizeare unchanged. The SigV4 adapter now passeskeep_blank_values=Truetoparse_qsl, so the signed query includespageToken=.Are these changes tested?
Yes. Tests in
tests/catalog/test_rest.pycover the empty initial token for all three list APIs, a two-pagelist_tablesrun, and blank query values reaching the SigV4 signer.Also tested manually against
tabulario/iceberg-rest:1.6.0:list_namespaces()withrest-page-size=1previously raisedNumberFormatExceptionand now returns all namespaces across pages.Are there any user-facing changes?
With
rest-page-sizeset, the first list request includespageToken=. Without it, nothing changes.