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(bigquery): address fastpath iteration with iterator.Pager #2947

Merged
merged 1 commit into from Oct 1, 2020

Conversation

shollyman
Copy link
Contributor

Iterating query results from the fastpath with an iterator.Pager
forces a cache miss if the pager size is misaligned with the cached
page size.

Logic to reduce the size of the getQueryResults payload by dictating
the projected fields was yielding an empty pageToken and no rows, which
is equivalent to an empty page response.

This PR corrects the projection logic, and adds an integration test to
exercise the use of misaligned paging.

Fixes: #2946

Iterating query results from the fastpath with an iterator.Pager
forces a cache miss if the pager size is misaligned with the cached
page size.

Logic to reduce the size of the getQueryResults payload by dictating
the projected fields was yielding an empty pageToken and no rows, which
is equivalent to an empty page response.

This PR corrects the projection logic, and adds an integration test to
exercise the use of misaligned paging.
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 1, 2020
@shollyman shollyman merged commit a791533 into googleapis:master Oct 1, 2020
@shollyman shollyman deleted the issue_2946 branch October 1, 2020 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bigquery: After upgrade v 1.11.0, bigquery.RowIterator pager return empty result.
2 participants