Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ce34c69

Browse files
authored
Merge branch 'main' into job-rate-limit
2 parents 7ce7bad + 89f1299 commit ce34c69

4 files changed

Lines changed: 4 additions & 72 deletions

File tree

docs/usage/queries.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Querying data
55
^^^^^^^^^^^^^
66

77
Run a query and wait for it to finish with the
8-
:func:`~google.cloud.bigquery.client.Client.query` method:
8+
:func:`~google.cloud.bigquery.client.Client.query_and_wait` method:
99

10-
.. literalinclude:: ../samples/client_query.py
10+
.. literalinclude:: ../samples/snippets/client_query.py
1111
:language: python
1212
:dedent: 4
1313
:start-after: [START bigquery_query]

samples/client_query.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

samples/desktopapp/user_credentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def main(project: str) -> None:
6161
WHERE name = 'William'
6262
GROUP BY name;
6363
"""
64-
query_job = client.query(query_string)
64+
results = client.query_and_wait(query_string)
6565

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

samples/tests/test_client_query.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)