-
Notifications
You must be signed in to change notification settings - Fork 185
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
list_datasets only grabs first 50 results #141
Comments
I'm happy to provide more context to this issue, but I couldn't find a default issue template or anything in your README.md. Adding @meridithperatikos to help watch this issue. |
Relates to #108. |
Just to be explicit: #108 refers to list_tables (within a given dataset), but it has an analogous problem, so they could easily be fixed together. |
Here's a quick fix, in case anyone else has the same issue:
|
@Alexander-McLean, I'm assuming you meant this? (use triple quotes "```" for multi-line code)
|
Thanks, @Alexander-McLean! I got it to run with the following tweaks:
Notice, this public project doesn't have enough datasets to prove we're breaking over the 50, but I ran it on the private project where we noticed the problem and it successfully retrieved 178 datasets. |
@Alexander-McLean, I'm not really familiar with R. I just tried adapting the same approach to
|
Thanks, @hadley! |
Fixes r-dbi#141 And fix a bunch of R CMD check problems :(
This is because the Google Big Query API only lists 50 by default. You can override this if you pass a
maxResults
argument or setall
to True.https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/list#parameters
Please pass one or both of these arguments via
bigrquery.list_datasets
.The text was updated successfully, but these errors were encountered: