-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Add parameter to download BigQuery results with the BigQuery Storage API #26104
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
Conversation
454cd4e
to
31bb4a4
Compare
doc/source/whatsnew/v0.25.0.rst
Outdated
@@ -191,6 +191,8 @@ Optional libraries below the lowest tested version may still work, but are not c | |||
+-----------------+-----------------+ | |||
| openpyxl | 2.4.0 | | |||
+-----------------+-----------------+ | |||
| pandas-gbq | 0.10.0 | | |||
+-----------------+-----------------+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we requiring this? shouldn’t the older versions still work ok? this is very disruptive for users to have to upgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem was that older versions don't know about use_bqstorage_api
. I've updated the PR to populate a dictionary for new and deprecated kwargs only if they are explicitly set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course but the point is that we cannot break prior installs
so you need to make things back compatible in pandas-gbq itself
we are not going to constantly upgrade the min supported version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is backwards compatible so long as we do as I've done in 9581ddf
Or do you mean old versions of pandas-gbq should accept and ignore arbitrary kwargs
?
Codecov Report
@@ Coverage Diff @@
## master #26104 +/- ##
==========================================
- Coverage 91.99% 91.98% -0.01%
==========================================
Files 175 175
Lines 52384 52387 +3
==========================================
- Hits 48189 48188 -1
- Misses 4195 4199 +4
Continue to review full report at Codecov.
|
…rage API Adds new `use_bqstorage_api` parameter to `read_gbq`. This can speed up downloads of large data frames.
6786682
to
c08c7b6
Compare
@jreback I've updated the PR to only populate the new kwargs if they are explicitly set. This should prevent forced upgrades unless someone wants to use the new feature. Ready for another review. |
All tests and linters are passing. Ready for another review. |
make sure we have a ci run for both oldest supported version and newest |
The GBQ tests are running on Travis.
|
thanks @tswast |
…rage API (pandas-dev#26104) Adds new `use_bqstorage_api` parameter to `read_gbq`. This can speed up downloads of large data frames.
…rage API (pandas-dev#26104) Adds new `use_bqstorage_api` parameter to `read_gbq`. This can speed up downloads of large data frames.
pandas-gbq 0.10.0 adds a new
use_bqstorage_api
parameter to speed up downloads of large dataframes.closes #xxxxgit diff upstream/master -u -- "*.py" | flake8 --diff