From 64f3165dbcac1ce54132fac685b8bf6a99798972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20R=C3=ADos?= Date: Sun, 27 Oct 2024 08:08:23 -0700 Subject: [PATCH] add: `deps_dev` explicit source (#2407) --- warehouse/dbt/models/deps_dev_sources.yml | 7 +++++++ .../models/staging/deps-dev/stg_deps_dev__dependencies.sql | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 warehouse/dbt/models/deps_dev_sources.yml diff --git a/warehouse/dbt/models/deps_dev_sources.yml b/warehouse/dbt/models/deps_dev_sources.yml new file mode 100644 index 000000000..9dd88e8e9 --- /dev/null +++ b/warehouse/dbt/models/deps_dev_sources.yml @@ -0,0 +1,7 @@ +sources: + - name: deps_dev + database: bigquery-public-data + schema: deps_dev_v1 + tables: + - name: dependencies + identifier: Dependencies diff --git a/warehouse/dbt/models/staging/deps-dev/stg_deps_dev__dependencies.sql b/warehouse/dbt/models/staging/deps-dev/stg_deps_dev__dependencies.sql index 6be6db6c2..5c5973d56 100644 --- a/warehouse/dbt/models/staging/deps-dev/stg_deps_dev__dependencies.sql +++ b/warehouse/dbt/models/staging/deps-dev/stg_deps_dev__dependencies.sql @@ -18,7 +18,7 @@ with base as ( `Version`, `Dependency`, `MinimumDepth` - from `bigquery-public-data.deps_dev_v1.Dependencies` + from {{ source("deps_dev", "dependencies") }} ) {% if is_incremental() %} select * from base