Skip to content

Commit

Permalink
docs: update the query w/ array params sample to use query_and_wait API
Browse files Browse the repository at this point in the history
  • Loading branch information
Salem Boyland committed Jan 11, 2024
1 parent 6408041 commit 3152a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/client_query_w_array_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def client_query_w_array_params() -> None:
bigquery.ArrayQueryParameter("states", "STRING", ["WA", "WI", "WV", "WY"]),
]
)
query_job = client.query(query, job_config=job_config) # Make an API request.
results = client.query_and_wait(query, job_config=job_config) # Make an API request.

for row in query_job:
for row in results:
print("{}: \t{}".format(row.name, row.count))
# [END bigquery_query_params_arrays]

0 comments on commit 3152a31

Please sign in to comment.