Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Support for external temporary tables #279

Closed
linar-jether opened this issue Sep 9, 2020 · 3 comments
Closed

Support for external temporary tables #279

linar-jether opened this issue Sep 9, 2020 · 3 comments

Comments

@linar-jether
Copy link

Feature Request

Support to pass external table configurations to the query's job configuration:
https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ExternalDataConfiguration

This will allow querying from external datasets without first explicitly defining a table, e.g. a csv/parquet/google sheets file(s)

A simple but very useful use case is using grafana for ad-hoc exploration of large GCS datasets (hive?)

@Tamirk
Copy link

Tamirk commented Oct 7, 2020

@linar-jether not sure what you mean in your request.
Once an external, aka federated table, is defined in your BigQuery, you can run an SQL from Grafana on that table assuming the service account your are using has the right ACL to query the table.

I don't see any change we need to do in our current implementation to support this

@linar-jether
Copy link
Author

@Tamirk Yes, only permanent external tables are supported, i was referring to querying temporary external tables, which do not require any table definition to be created before querying:
https://cloud.google.com/bigquery/external-data-cloud-storage#creating_and_querying_a_temporary_table

@Tamirk
Copy link

Tamirk commented Oct 13, 2020

@linar-jether thanks for the detail. Let's see if we have more users looking for such a feature and based on this we'll decide how to advance this CR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants