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
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.
Is your feature request related to a problem? Please describe.
Code:
Output:
Describe the solution you'd like
Where
DatasetorDatasetReferenceis accepted, also accept aDatasetListItem.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.Additional context
N/A