forked from dbt-labs/dbt-project-evaluator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exposures on non public models - more files
- Loading branch information
1 parent
c903f46
commit 3de4e66
Showing
7 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
models/marts/governance/fct_exposures_dependent_on_private_models.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
with | ||
|
||
direct_exposure_relationships as ( | ||
select * from {{ ref('int_all_dag_relationships') }} | ||
where | ||
distance = 1 | ||
and child_resource_type = 'exposure' | ||
and not ( | ||
parent_resource_type = 'model' | ||
and parent_is_public | ||
) | ||
), | ||
|
||
final as ( | ||
|
||
select | ||
child as exposure_name, | ||
parent as parent_resource_name, | ||
parent_access, | ||
parent_resource_type | ||
|
||
from direct_exposure_relationships | ||
|
||
) | ||
|
||
select * from final | ||
|
||
{{ filter_exceptions(this) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,6 @@ final as ( | |
and not is_contract_enforced | ||
) | ||
|
||
select * from final | ||
select * from final | ||
|
||
{{ filter_exceptions(this) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,6 @@ final as ( | |
) | ||
) | ||
|
||
select * from final | ||
select * from final | ||
|
||
{{ filter_exceptions(this) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters