-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Hello,
In v0.28.0 of the BigQuery Python Client, it doesn't seem possible to recover the original DatasetReference
or TableReference
used to create the the Dataset
or Table
, thus preventing any part of the API (or a user's application) that requires a reference to also take the Dataset or Table object. It seems the reference used in creating the Dataset or Table is lost on object creation [1][2].
For example, in the client.load_table_from_file()
function [3], a table_ref
is expected; it seems logically unreasonable that a full Table object can't be used to fulfil the need for a table reference.
Cheers,
Rob
[1] https://github.com/GoogleCloudPlatform/google-cloud-python/blob/0.28.0/bigquery/google/cloud/bigquery/table.py#L170-L177
[2] https://github.com/GoogleCloudPlatform/google-cloud-python/blob/0.28.0/bigquery/google/cloud/bigquery/dataset.py#L204-L208
[3] https://github.com/GoogleCloudPlatform/google-cloud-python/blob/0.28.0/bigquery/google/cloud/bigquery/client.py#L692-L706