Skip to content

Commit

Permalink
Merge branch 'main' into job-rate-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraksi authored Jan 22, 2024
2 parents 7ce7bad + 89f1299 commit ce34c69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 72 deletions.
4 changes: 2 additions & 2 deletions docs/usage/queries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Querying data
^^^^^^^^^^^^^

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

.. literalinclude:: ../samples/client_query.py
.. literalinclude:: ../samples/snippets/client_query.py
:language: python
:dedent: 4
:start-after: [START bigquery_query]
Expand Down
41 changes: 0 additions & 41 deletions samples/client_query.py

This file was deleted.

4 changes: 2 additions & 2 deletions samples/desktopapp/user_credentials.py
Original file line number Diff line number Diff line change
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
27 changes: 0 additions & 27 deletions samples/tests/test_client_query.py

This file was deleted.

0 comments on commit ce34c69

Please sign in to comment.