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

Commit410f71e

Browse files
DevStephaniegcf-owl-bot[bot]tswast
authored
docs: update to usequery_and_wait inclient_query_w_positional_params.py (#1786)
* Updates file* 🦉 Updates from OwlBot post-processorSeehttps://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md* Correcting RowIterator* Variable corrections---------Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Tim Swast <swast@google.com>
1 parent68ebbe1 commit410f71e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎samples/client_query_w_positional_params.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ def client_query_w_positional_params() -> None:
3535
bigquery.ScalarQueryParameter(None,"INT64",250),
3636
]
3737
)
38-
query_job=client.query(query,job_config=job_config)# Make an API request.
38+
results=client.query_and_wait(
39+
query,job_config=job_config
40+
)# Make an API request.
3941

40-
forrowinquery_job:
42+
forrowinresults:
4143
print("{}:\t{}".format(row.word,row.word_count))
4244
# [END bigquery_query_params_positional]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp