8000 BigQuery Python Client v0.28.0: Can't recover {Dataset,Table}References from Dataset or Table objects · Issue #4327 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

BigQuery Python Client v0.28.0: Can't recover {Dataset,Table}References from Dataset or Table objects #4327

@robfraz

Description

@robfraz

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

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0