With BigQuery and dbt
, we can reference existing tables using sources , how can I do to reference an existing Standard SQL UDF ?
# schema.yml
sources:
- name: dataset
tables:
- name: table1
- name: table2
/* view.sql */
SELECT * FROM {{ source('dataset', 'table1') }}
Thank you.
Ref: https://docs.getdbt.com/docs/building-a-dbt-project/using-sources