Content-Length: 263766 | pFad | https://github.com/googleapis/python-bigquery/commit/ba3694852c13c8a29fe0f9d923353e82acfd4278

A1 docs: update to use `query_and_wait` in `samples/client_query_w_times… · googleapis/python-bigquery@ba36948 · GitHub
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 <swast@google.com>
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

Lines changed: 4 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-bigquery/commit/ba3694852c13c8a29fe0f9d923353e82acfd4278

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy