mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
added example model & source, updated get_dependencies to include all nodes
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
),
|
||||
|
||||
-- recursive CTE
|
||||
-- one record for every root node and each of its downstream children (including itself)
|
||||
-- one record for every node and each of its downstream children (including itself)
|
||||
all_relationships as (
|
||||
|
||||
-- anchor
|
||||
@@ -67,7 +67,7 @@
|
||||
0 as distance,
|
||||
array_construct(child) as path {# snowflake-specific, but helpful for troubleshooting right now #}
|
||||
from direct_relationships
|
||||
where direct_parent is null
|
||||
-- where direct_parent is null {# optional lever to change filtering of anchor clause to only include root nodes #}
|
||||
|
||||
union all
|
||||
|
||||
|
||||
2
models/marts/fct_model_8.sql
Normal file
2
models/marts/fct_model_8.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- a model with no upstream parent nodes
|
||||
-- aka a model that is not using the source or ref function
|
||||
@@ -7,4 +7,5 @@ sources:
|
||||
tables:
|
||||
- name: table_1
|
||||
- name: table_2
|
||||
- name: table_3
|
||||
- name: table_3
|
||||
- name: table_4
|
||||
Reference in New Issue
Block a user