You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Traceback (most recent call last):
File "2021/04-test-dataset-cleanup/cleanup.py", line 11, in <module>
tables = len(bqclient.list_tables(dataset, max_results=1))
File "/Users/swast/miniconda3/envs/scratch/lib/python3.8/site-packages/google/cloud/bigquery/client.py", line 1327, in list_tables
raise TypeError("dataset must be a Dataset, DatasetReference, or string")
TypeError: dataset must be a Dataset, DatasetReference, or string
Describe the solution you'd like
Where Dataset or DatasetReference is accepted, also accept a DatasetListItem.
Describe alternatives you've considered
I know that we created DatasetListItem.reference, which I can use, but it'd be a bit more intuitive if I didn't have to.
Activity
[-]feat: `list_tables` accepts a DatasetListItem[/-][+]feat: `list_tables` accepts a `DatasetListItem`[/+]tswast commentedon Apr 6, 2021
In addition to
list_tables, any method that takes aDatasetReferencebut not aDatasetListItemshould be updated.