Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
4 changes: 2 additions & 2 deletions samples/query_to_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def query_to_arrow() -> "pyarrow.Table":
FROM races r
CROSS JOIN UNNEST(r.participants) as participant;
"""
query_job = client.query(sql)
arrow_table = query_job.to_arrow() # Make an API request.
results = client.query_and_wait(sql)
arrow_table = results.to_arrow() # Make an API request.

print(
"Downloaded {} rows, {} columns.".format(
Expand Down