Skip to content

Commit 89f1299

Browse files
docs: Updates query to query and wait in samples/desktopapp/user_credentials.py (#1787)
* Updates file * Updates files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Updates * edits --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1f96439 commit 89f1299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/desktopapp/user_credentials.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def main(project: str) -> None:
6161
WHERE name = 'William'
6262
GROUP BY name;
6363
"""
64-
query_job = client.query(query_string)
64+
results = client.query_and_wait(query_string)
6565

6666
# Print the results.
67-
for row in query_job.result(): # Wait for the job to complete.
67+
for row in results: # Wait for the job to complete.
6868
print("{}: {}".format(row["name"], row["total"]))
6969
# [END bigquery_auth_user_query]
7070

0 commit comments

Comments
 (0)