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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update client_query_w_named_params.py to use query_and_wait API #1782

Merged
merged 9 commits into from
Feb 12, 2024
Next Next commit
docs: update client_query_w_named_params.py to use query_and_wait API
  • Loading branch information
Salem Boyland committed Jan 16, 2024
commit a7de649aedd7c8f1aae80773d08ee71c818a83ac
4 changes: 2 additions & 2 deletions samples/client_query_w_named_params.py
Expand Up @@ -33,8 +33,8 @@ def client_query_w_named_params() -> None:
bigquery.ScalarQueryParameter("min_word_count", "INT64", 250),
]
)
query_job = client.query(query, job_config=job_config) # Make an API request.
results = client.query_and_wait(query, job_config=job_config) # Make an API request.
kiraksi marked this conversation as resolved.
Show resolved Hide resolved

for row in query_job:
for row in results:
print("{}: \t{}".format(row.word, row.word_count))
# [END bigquery_query_params_named]