We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf10de commit a7be88aCopy full SHA for a7be88a
samples/query_external_sheets_permanent_table.py
@@ -69,10 +69,10 @@ def query_external_sheets_permanent_table(dataset_id: str) -> None:
69
# Example query to find states starting with "W".
70
sql = 'SELECT * FROM `{}.{}` WHERE name LIKE "W%"'.format(dataset_id, table_id)
71
72
- query_job = client.query(sql) # Make an API request.
+ results = client.query_and_wait(sql) # Make an API request.
73
74
# Wait for the query to complete.
75
- w_states = list(query_job)
+ w_states = list(results)
76
print(
77
"There are {} states with names starting with W in the selected range.".format(
78
len(w_states)
0 commit comments