feat: progress bar during query in QueryJob.to_dataframe
and QueryJob.to_arrow
#343
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
When running a query via the
%%bigquery
magics or waiting for it to finish via QueryJob.to_dataframe or QueryJob.to_arrow, an argumentprogress_bar_type
is accepted.Currently, this only shows the progress of the query results download. It would be great if it would also give an indicator while the query is executing.
Describe the solution you'd like
When a value is passed to
progress_bar_type
, show some kind of progress bar. Ideally, it would work similarly to the UI. For example,To populate this, instead of calling
result()
once:result(timeout=[a few seconds])
every few seconds.job.reload()
to fetch the latest job statistics.Describe alternatives you've considered
tqdm
doesn't actually support spinners, and if it ever does, it sounds like it'll be via a different API than the current progress bars. "Indefinite" progress bar tqdm/tqdm#427 Add spinners tqdm/tqdm#925Additional context
pandas-gbq feature request: Implement initial "waiting" logs with tqdm? python-bigquery-pandas#327
Example of BigQuery UI progress bar:
The text was updated successfully, but these errors were encountered: