-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates ELE-1819
- Loading branch information
erikzaadi
committed
Oct 1, 2023
1 parent
bdbb6de
commit 9ce379e
Showing
4 changed files
with
44 additions
and
18 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
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,19 @@ | ||
{{ | ||
config( | ||
materialized = 'view', | ||
bind=False, | ||
unique_key='unique_id', | ||
) | ||
}} | ||
|
||
with dbt_exposures as ( | ||
select * from {{ ref('dbt_exposures') }} | ||
), | ||
|
||
elementary_exposures as ( | ||
select * from {{ ref('elementary_exposures') }} | ||
) | ||
|
||
{# Union without duplicates where elementary_exposures has prio #} | ||
select * from dbt_exposures where not exists (select 1 from elementary_exposures where dbt_exposures.unique_id = elementary_exposures.unique_id) | ||
union select * from elementary_exposures |