Skip to content

Allow fetching more than the first page when max_results is set. - #3845

Merged
tswast merged 5 commits into
googleapis:masterfrom
tswast:bq-dbapi
Aug 21, 2017
Merged

Allow fetching more than the first page when max_results is set.#3845
tswast merged 5 commits into
googleapis:masterfrom
tswast:bq-dbapi

Conversation

@tswast

Copy link
Copy Markdown
Contributor

Closes#3840

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 19, 2017
@tswast

Copy link
Copy Markdown
ContributorAuthor

Oh, also fixes a bug where arraysize was ignored if set after execute() in BigQuery DB-API.

@tswasttswast added api: bigquery Issues related to the BigQuery API. api: core labels Aug 19, 2017
Add a system test to call `fetchall()` when multiple rows are expected.
This error applies to all BigQuery iterators, not just DB-API.
It was allowed before, but it didn't result in the correct behavior.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
@tswast
tswast merged commit f67bea4 into googleapis:masterAug 21, 2017
@tswast
tswast deleted the bq-dbapi branch August 21, 2017 19:11
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
…gleapis#3845)
* BigQuery: reproduce error fetching multiple results with DB-API.
Add a system test to call `fetchall()` when multiple rows are expected.
* BigQuery: system test to reproduce error of only fetching first page.
This error applies to all BigQuery iterators, not just DB-API.
* BigQuery: allow arraysize to be set after execute()
It was allowed before, but it didn't result in the correct behavior.
* max_results in BigQuery API had a different meaning from HTTPIterator.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
* Fix lint errors
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…gleapis#3845)
* BigQuery: reproduce error fetching multiple results with DB-API.
Add a system test to call `fetchall()` when multiple rows are expected.
* BigQuery: system test to reproduce error of only fetching first page.
This error applies to all BigQuery iterators, not just DB-API.
* BigQuery: allow arraysize to be set after execute()
It was allowed before, but it didn't result in the correct behavior.
* max_results in BigQuery API had a different meaning from HTTPIterator.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
* Fix lint errors
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…gleapis#3845)
* BigQuery: reproduce error fetching multiple results with DB-API.
Add a system test to call `fetchall()` when multiple rows are expected.
* BigQuery: system test to reproduce error of only fetching first page.
This error applies to all BigQuery iterators, not just DB-API.
* BigQuery: allow arraysize to be set after execute()
It was allowed before, but it didn't result in the correct behavior.
* max_results in BigQuery API had a different meaning from HTTPIterator.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
* Fix lint errors
parthea pushed a commit that referenced this pull request Nov 24, 2025
* BigQuery: reproduce error fetching multiple results with DB-API.
Add a system test to call `fetchall()` when multiple rows are expected.
* BigQuery: system test to reproduce error of only fetching first page.
This error applies to all BigQuery iterators, not just DB-API.
* BigQuery: allow arraysize to be set after execute()
It was allowed before, but it didn't result in the correct behavior.
* max_results in BigQuery API had a different meaning from HTTPIterator.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
* Fix lint errors
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigqueryIssues related to the BigQuery API.api: corecla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tswast@lukesneeringer@googlebot