Skip to content

Commit

Permalink
docs: update the query with no cache sample to use query_and_wait API (
Browse files Browse the repository at this point in the history
…#1770)

Co-authored-by: Salem Boyland <salemb@google.com>
Co-authored-by: Kira <kirnendra@google.com>
  • Loading branch information
3 people committed Jan 18, 2024
1 parent d1161dd commit 955a4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/query_no_cache.py
Expand Up @@ -26,8 +26,8 @@ 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.
results = client.query_and_wait(sql, job_config=job_config) # Make an API request.

for row in query_job:
for row in results:
print(row)
# [END bigquery_query_no_cache]

0 comments on commit 955a4cd

Please sign in to comment.