feat(bigquery-dataset): add optional schema support for views (#3377)
* feat: add optional schema to BigQuery views for descriptions * feat: add schema support for view definitions in BigQuery dataset module * fix: encode schema as JSON for BigQuery views * feat: add population schema and update query for population view in BigQuery dataset --------- Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
@@ -26,8 +26,9 @@ values:
|
||||
friendly_name: Population
|
||||
project: my-project
|
||||
table_id: population
|
||||
schema: '[{"description":"Total population","mode":null,"name":"total","type":"INT64"}]'
|
||||
view:
|
||||
- query: SELECT SUM(population) FROM my_dataset.countries
|
||||
- query: SELECT SUM(population) AS total FROM my_dataset.countries
|
||||
use_legacy_sql: false
|
||||
|
||||
counts:
|
||||
|
||||
Reference in New Issue
Block a user