-
Notifications
You must be signed in to change notification settings - Fork 309
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
docs: update the query with no cache sample to use query_and_wait
API
#1770
Conversation
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
query_no_cache.py
updates : Call to APIquery_no_cache.py
code sample updates
samples/query_no_cache.py
Outdated
@@ -26,7 +26,7 @@ def query_no_cache() -> None: | |||
FROM `bigquery-public-data.samples.shakespeare` | |||
GROUP BY corpus; | |||
""" | |||
query_job = client.query(sql, job_config=job_config) # Make an API request. | |||
query_job = client.query_and_wait(sql, job_config=job_config) # Make an API request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename this variable to results
since it is no longer a QueryJob object.
query_no_cache.py
code sample updates query_and_wait
API
query_and_wait
APIquery_and_wait
API
Head branch was pushed to by a user without write access
3152a31
to
c104a23
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕