Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not overwrite page_size with max_results when start_index is set #1956

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

Linchin
Copy link
Contributor

@Linchin Linchin commented Jun 13, 2024

When start_index is set, the user is not trying to get the first page of the result, and thus we don't need to overwrite page_size with max_results, which will only return the first page.

Fixes #1950 🦕

@Linchin Linchin requested a review from tswast June 13, 2024 22:37
@Linchin Linchin requested review from a team as code owners June 13, 2024 22:37
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jun 14, 2024
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Linchin Linchin enabled auto-merge (squash) June 17, 2024 17:07
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jun 17, 2024
@Linchin Linchin merged commit 7d0fcee into googleapis:main Jun 17, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

query result pagination caught in infinite loop
2 participants