We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
query
query and wait
1 parent 1f96439 commit 89f1299Copy full SHA for 89f1299
samples/desktopapp/user_credentials.py
@@ -61,10 +61,10 @@ def main(project: str) -> None:
61
WHERE name = 'William'
62
GROUP BY name;
63
"""
64
- query_job = client.query(query_string)
+ results = client.query_and_wait(query_string)
65
66
# Print the results.
67
- for row in query_job.result(): # Wait for the job to complete.
+ for row in results: # Wait for the job to complete.
68
print("{}: {}".format(row["name"], row["total"]))
69
# [END bigquery_auth_user_query]
70
0 commit comments