Feature Request / Improvement
The REST catalog spec defines pageToken as a query parameter for GET /v1/{prefix}/namespaces, and next-page-token in the ListNamespacesResponse schema:
Currently, RestCatalog.list_namespaces makes a single HTTP request and returns only the first page of results. If the server paginates the response, PyIceberg silently returns an incomplete namespace list.
This is the same gap that was fixed for list_views by @ebyhr in #3349 and is being fixed for list_tables in #3348.
The fix is to:
- Add
next_page_token field to ListNamespaceResponse
- Loop through pages in
list_namespaces using the same pattern as list_views
Feature Request / Improvement
The REST catalog spec defines
pageTokenas a query parameter forGET /v1/{prefix}/namespaces, andnext-page-tokenin theListNamespacesResponseschema:Currently,
RestCatalog.list_namespacesmakes a single HTTP request and returns only the first page of results. If the server paginates the response, PyIceberg silently returns an incomplete namespace list.This is the same gap that was fixed for
list_viewsby @ebyhr in #3349 and is being fixed forlist_tablesin #3348.The fix is to:
next_page_tokenfield toListNamespaceResponselist_namespacesusing the same pattern aslist_views