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

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

Merged
merged 5 commits into from
Aug 21, 2017

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Aug 19, 2017

Closes #3840

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

tswast commented Aug 19, 2017

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

@tswast tswast added api: bigquery Issues related to the BigQuery API. api: core labels Aug 19, 2017
tswast added 5 commits August 21, 2017 09:31
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:master Aug 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
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 BigQuery API. api: core cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants