Skip to content

Commit b73f946

Browse files
authored
Merge branch 'main' into fix-dataset-output-only-docs-final
2 parents 95b2cc3 + 28a9994 commit b73f946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/client_query_w_array_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def client_query_w_array_params() -> None:
3535
bigquery.ArrayQueryParameter("states", "STRING", ["WA", "WI", "WV", "WY"]),
3636
]
3737
)
38-
query_job = client.query(query, job_config=job_config) # Make an API request.
38+
rows = client.query_and_wait(query, job_config=job_config) # Make an API request.
3939

40-
for row in query_job:
40+
for row in rows:
4141
print("{}: \t{}".format(row.name, row.count))
4242
# [END bigquery_query_params_arrays]

0 commit comments

Comments
 (0)