Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: update the query destination table legacy file to use query_and_wait API #1775

Merged
merged 10 commits into from
Jan 25, 2024
4 changes: 2 additions & 2 deletions samples/client_query_destination_table_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def client_query_destination_table_legacy(table_id: str) -> None:
"""

# Start the query, passing in the extra configuration.
query_job = client.query(sql, job_config=job_config) # Make an API request.
query_job.result() # Wait for the job to complete.
results = client.query_and_wait(sql, job_config=job_config) # Make an API request.
results.result() # Wait for the job to complete.
kiraksi marked this conversation as resolved.
Show resolved Hide resolved

print("Query results loaded to the table {}".format(table_id))
# [END bigquery_query_legacy_large_results]