question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BigQuery usage docs do not explain references

See original GitHub issue

The BigQuery usage docs do not explain what TableReferences are, when/why you’d need to use one instead of a Table, and how to get a TableReference from a Table or vice versa.

(And similarly for DatasetReferences and Datasets.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tswastcommented, Apr 27, 2018

Re: my previous comment.

I’ve sent https://github.com/GoogleCloudPlatform/google-cloud-python/pull/5255 to add Dataset/Table.from_string(fully_qualified_id), which I think will address the concern that it requires too many objects to create a table/dataset.

1reaction
tswastcommented, Apr 21, 2018

Honestly since the REST API separates everything out like

{"projectId": "my-project", "datasetId": "my_dataset"}

it hadn’t crossed my mind to accept a fully-qualified dataset ID. I would be open to a PR that modifies Dataset to accept strings like “project.dataset” as an option where there is a Dataset reference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Query syntax | BigQuery - Google Cloud
You may reference columns in a table passed to PIVOT , as well as correlated columns, but may not access columns defined by...
Read more >
BigQuery setup - dbt Developer Hub
This connection method requires local OAuth via gcloud . ... If you do not specify a project / database and are using the...
Read more >
bigquery - Go Packages
These methods create references to datasets, not the datasets themselves. You can have a dataset reference even if the dataset doesn't exist yet....
Read more >
The Lazy Guide to Learning BigQuery SQL
At the top of the query, you can define each table you'll use, and do any filtering + grouping beforehand. Then, when you...
Read more >
Google BigQuery I/O connector - Apache Beam
To specify a BigQuery table, you can use either the table's ... BigQuery data types: // https://cloud.google.com/bigquery/docs/reference/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found