Skip to content

Commit

Permalink
docs: Updates query to query and wait in samples/desktopapp/user_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
DevStephanie and gcf-owl-bot[bot] committed Jan 22, 2024
1 parent 1f96439 commit 89f1299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/desktopapp/user_credentials.py
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

0 comments on commit 89f1299

Please sign in to comment.