Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/desktopapp/user_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def main(project: str) -> None:
WHERE name = 'William'
GROUP BY name;
"""
query_job = client.query(query_string)
results = client.query_and_wait(query_string)

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

Expand Down