tylertreat/BigQuery-Python

get_datasets() returns only partial list

Opened this issue · 1 comments

On a project with 63 datasets, a get_datasets() call returned only the first 50 datasets. Since the docstring reads List all datasets in the project, this does not seem to be intended behavior.

The datasets call probably needs to page through the Google API: https://cloud.google.com/bigquery/docs/reference/v2/datasets/list

It should just be a matter of using the page token. Feel free to make a PR.