Skip to content

Commit

Permalink
make sure to exclude relationships to catch excluded staging models
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 committed Aug 17, 2023
1 parent dff2abb commit 907c520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/marts/structure/fct_model_directories.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ folders as (

all_dag_relationships as (
select * from {{ ref('int_all_dag_relationships') }}
where not child_is_excluded
),

staging_models as (
Expand Down Expand Up @@ -56,7 +57,6 @@ innappropriate_subdirectories_non_staging_models as (
on folders.model_type = all_graph_resources.model_type
-- either appropriate folder_name is not in the current_directory_path or a inappropriate folder name is closer to the file_name
where all_graph_resources.model_type <> all_graph_resources.model_type_folder
and not is_excluded
),

unioned as (
Expand Down

0 comments on commit 907c520

Please sign in to comment.