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:
Nishant Raghav
2025-10-06 07:40:39 +02:00
committed by GitHub
parent e9c3341323
commit 81c7213f92
4 changed files with 19 additions and 3 deletions

View File

@@ -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: