You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use a syntax like client.query(project_id, query).use_storage_read(true) or client.query_with_storage(project_id, query) to send a query and then read the results via the storage read api.
Currently we need to use client.job.query(...), wait for the job to finish, grab the destination id (if it is temporary/unknown) from the response via client.job().get(...) and then initiate a client.read_table(...) to pull the data. This is fine but I imagine that this is a common enough use case to warrant providing a convenient top level api.
If you could outline the which api interface you think is best I'd be happy to have a go making a PR.
The text was updated successfully, but these errors were encountered:
magnalite
changed the title
Running a query and then downloading results via storage read api is awkward
(BigQuery) Running a query and then downloading results via storage read api is awkward
Jun 29, 2023
I would like to use a syntax like
client.query(project_id, query).use_storage_read(true)
orclient.query_with_storage(project_id, query)
to send a query and then read the results via the storage read api.Currently we need to use
client.job.query(...)
, wait for the job to finish, grab the destination id (if it is temporary/unknown) from the response viaclient.job().get(...)
and then initiate aclient.read_table(...)
to pull the data. This is fine but I imagine that this is a common enough use case to warrant providing a convenient top level api.If you could outline the which api interface you think is best I'd be happy to have a go making a PR.
The text was updated successfully, but these errors were encountered: