Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bigquery): address fastpath iteration with iterator.Pager (#2947)
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.
- Loading branch information
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters