Skip to content

Commit ba36948

Browse files
DevStephaniegcf-owl-bot[bot]tswast
authored
docs: update to use query_and_wait in samples/client_query_w_timestamp_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]>
1 parent 81563b0 commit ba36948

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/client_query_w_timestamp_params.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ def client_query_w_timestamp_params() -> None:
3232
)
3333
]
3434
)
35-
query_job = client.query(query, job_config=job_config) # Make an API request.
35+
results = client.query_and_wait(
36+
query, job_config=job_config
37+
) # Make an API request.
3638

37-
for row in query_job:
39+
for row in results:
3840
print(row)
3941
# [END bigquery_query_params_timestamps]

0 commit comments

Comments
 (0)