Skip to content

Commit 9a73300

Browse files
Merge pull request #372 from dbt-labs/fix-exlcusion-redux
Fix exclusion: redux
2 parents 9d7676d + 907c520 commit 9a73300

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

integration_tests/exclude_package/models/excluded_model.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sources:
2+
- name: fake_source
3+
tables:
4+
- name: fake_source
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- {{ source('fake_source', 'fake_source') }}
2+
select 1 as id

models/marts/structure/fct_model_directories.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ folders as (
1414

1515
all_dag_relationships as (
1616
select * from {{ ref('int_all_dag_relationships') }}
17+
where not child_is_excluded
1718
),
1819

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

6262
unioned as (

0 commit comments

Comments
 (0)