Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Update QueryPagination.java code for better paginated iteration #2073

@AyushWalekar

Description

@AyushWalekar

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.
With regards to the query pagination example, the existing example doesn't cover scenario to iterate through all next row page-by-page. And I couldn't find an example to do so anywhere else.

Describe the solution you'd like
An easier approach would be to iterate 1st page in the result and then loop through next pages while updating result object

Describe alternatives you've considered
I have tried using iterateAll(), but it fetches all rows at once, instead iteration should be page-by-page as defined query config pageSize.

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/java-bigquery API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions