-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: show progress while fetching rows for query #182
Comments
I found
Yes, and that gives us a bunch of potential performance improvements too! |
As a frequent downloader of large tables over a slow connection I'd like to implement this. Questions for @tswast @max-sixty :
|
I'd prefer to keep But note now that we're using
If |
Oh, and I'm a maintainer of |
Now that googleapis/google-cloud-python#7552 is merged, should |
Yeah, once I make a new release of |
Now that |
As reported by @QuinRiva in #12 (comment)
Progress is written to logging while a query is running, but no progress is reported between when a query finishes and while the data is being downloaded to be added to a DataFrame. The problem is that we call
list(rows_iter)
to fetch all pages. Previously, progress was written as each page was downloaded.https://github.com/pydata/pandas-gbq/blob/08166685d3305a57fbfd3bc4c41a1cf5df98ebcf/pandas_gbq/gbq.py#L294-L299
A possible solution is to loop over
rows_iter.pages
instead. After the first page is fetched, therows_iter.total_rows
property is available, so it would be possible to display a percent complete or even usetqdm
as done in #166.The text was updated successfully, but these errors were encountered: