Skip to content

Commit 37e05a6

Browse files
committed
Update fct_chained_views to only report exceptions, like other fct tables
1 parent b01684f commit 37e05a6

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

models/marts/performance/fct_chained_views_dependencies.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final as (
1616
from all_relationships
1717
where is_dependent_on_chain_of_views
1818
and child_resource_type = 'model'
19+
and distance > {{ var('chained_views_threshold') }}
1920
)
2021

2122
select * from final

models/marts/performance/performance.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ models:
66
This returns models dependent on chains of "non-physically-materialized" models (views and ephemerals),
77
highlighting potential cases for improving performance by switching the materialization of model(s) within
88
the chain to table or incremental.
9-
columns:
10-
- name: distance
11-
tests:
12-
- dbt_utils.accepted_range:
13-
name: valid_chained_views_dependencies
14-
max_value: "{{ var('chained_views_threshold') }}"
15-
inclusive: false
16-
severity: warn
9+
tests:
10+
- is_empty:
11+
severity: warn

0 commit comments

Comments
 (0)