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

BigQuery, BigQuery Storage: Fix list_rows() max results with BQ storage client #9178

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

plamut
Copy link
Contributor

@plamut plamut commented Sep 5, 2019

Closes #9174.

This PR fixes the issue with max_results if BQ storage API is used by falling back to the tabledata.list API endpoint, and issuing a user warning.

How to test

Run the code sample from the issue description, and verify that indeed only 100 rows is returned regardless of which client (BQ or BQ storage) is used.

If max results is set, the streaming API should not be used, and a
user warning is issued.
@plamut plamut added api: bigquery Issues related to the BigQuery API. api: bigquerystorage Issues related to the BigQuery Storage API. labels Sep 5, 2019
@plamut plamut requested a review from a team September 5, 2019 10:26
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 5, 2019
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!

@plamut plamut merged commit 2e841cf into googleapis:master Sep 6, 2019
@plamut plamut deleted the iss-9174 branch September 6, 2019 19:45
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 11, 2019
If max results is set, the streaming API should not be used, and a
user warning is issued.
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 18, 2019
If max results is set, the streaming API should not be used, and a
user warning is issued.
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: bigquerystorage Issues related to the BigQuery Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery: max_results is ignored if bqstorage_client is used in to_dataframe or to_arrow
3 participants