-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Pagination in pandas.io.gbq #5262
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
Looks fine to me - I'll leave it open for a bit so others can comment then merge tomorrow. |
@jacobschaer can you rebase to a single commit? and just confirm that it tests ok locally as well |
Alright, I merged them all together and ran the test suite a final time. Below is the results (snipped out the lengthy job notifications).
OK |
do u now require a minimum version of big query? if so I would check when u import and raise with a helpful message (to get a min version) |
@jreback - We do require bq.py v2.0.17 (though from testing 2.0.16 seems to work ok). Do you have any recommendations on how to check for a minimum version? |
Use LooseVersion (imported from distutils) - pretty sure Should work |
https://github.com/pydata/pandas/blob/master/pandas/util/print_versions.py see at the bottom for how to get the bq versions https://github.com/pydata/pandas/wiki/Tips-&-Tricks for how to use loose version to check but only put in a check if it makes a difference in what u r doing - eg you need to do different things depending in versions or certain things not supported |
I'll take a look at it... I'm using a constant from the file that does require at least 2.0.16... 2.0.17 was released do close, we might as well make it the minimum just in case something comes up in the near future. |
Version checking no in place. |
gr8....if you want to have travis test on an older version you can as well (not sure if that is useful).....no biggie |
I tested it locally by downgrading... not sure if it needs to be in Travis for this revision, but I'll definitely consider it for the next one. |
that's fine....ok...bombs away |
BUG: Pagination in pandas.io.gbq
In light of some last minute API changes in Google BigQuery, I have updated our code to function properly. In particular, this fixes a known bug that limited result sets to 10,000. Hopefully we'll have an entirely new version soon that will make better use of Google's reference code and thus be more future proof. Note that bigquery v2.0.17 is new as of today... 2.0.16 tested fine, but they fixed a few important backend things so we went ahead and made the change mandatory in light of the pandas release candidate.
See:
closes #5255