Skip to content

Commit

Permalink
docs: update to use query_and_wait in `samples/client_query_w_times…
Browse files Browse the repository at this point in the history
…tamp_params.py` (#1785)

* Updates file

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Correcting RowIterator

* Correcting variable names

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent 81563b0 commit ba36948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/client_query_w_timestamp_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ def client_query_w_timestamp_params() -> None:
)
]
)
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.

for row in query_job:
for row in results:
print(row)
# [END bigquery_query_params_timestamps]

0 comments on commit ba36948

Please sign in to comment.