Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit955a4cd

Browse files
SalemJordenSalem Boylandkiraksi
authored
docs: update the query with no cache sample to use query_and_wait API (#1770)
Co-authored-by: Salem Boyland <salemb@google.com>Co-authored-by: Kira <kirnendra@google.com>
1 parentd1161dd commit955a4cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎samples/query_no_cache.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def query_no_cache() -> None:
2626
FROM `bigquery-public-data.samples.shakespeare`
2727
GROUP BY corpus;
2828
"""
29-
query_job=client.query(sql,job_config=job_config)# Make an API request.
29+
results=client.query_and_wait(sql,job_config=job_config)# Make an API request.
3030

31-
forrowinquery_job:
31+
forrowinresults:
3232
print(row)
3333
# [END bigquery_query_no_cache]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp