Skip to content

Commit

Permalink
Merge pull request #372 from dbt-labs/fix-exlcusion-redux
Browse files Browse the repository at this point in the history
Fix exclusion: redux
  • Loading branch information
dave-connors-3 authored Aug 17, 2023
2 parents 9d7676d + 907c520 commit 9a73300
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.

This file was deleted.

4 changes: 4 additions & 0 deletions integration_tests/exclude_package/models/staging/_sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sources:
- name: fake_source
tables:
- name: fake_source
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- {{ source('fake_source', 'fake_source') }}
select 1 as id
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 9a73300

Please sign in to comment.