Skip to content

Lazy pagination iterator for catalog list methods#3416

Open
GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/issue-3365-lazy-pagination-iterator
Open

Lazy pagination iterator for catalog list methods#3416
GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/issue-3365-lazy-pagination-iterator

Conversation

@GayathriSrividya
Copy link
Copy Markdown

Closes #3365

Changes

  • Changed list_tables, list_namespaces, list_views return types from list[Identifier] to Iterator[Identifier]
  • REST catalog uses true generators with per-page HTTP fetch helpers (decorated with @retry) to correctly support auth retry logic
  • Other catalogs (SQL, DynamoDB, Glue, Hive, BigQuery, NoOp) return iter() of their results
  • CLI and output updated to work with iterators

…che#3365)

- Changed list_tables, list_namespaces, list_views return types from list[Identifier] to Iterator[Identifier] in the base Catalog abstract class and all implementations
- REST catalog uses true generators with per-page HTTP fetch helpers (decorated with @Retry) to correctly support auth retry logic
- Other catalogs (SQL, DynamoDB, Glue, Hive, BigQuery, NoOp) return iter() of their results
- CLI and output updated to work with iterators
- All test files updated to wrap list_* calls with list() where needed

Closes apache#3365
@Fokko
Copy link
Copy Markdown
Contributor

Fokko commented May 26, 2026

@GayathriSrividya To credit the original author, it would be good to cherry-pick his work

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement iterator to lazily go through the paged response

2 participants