-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98ec610
commit b09dc94
Showing
5 changed files
with
31 additions
and
22 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
19 changes: 19 additions & 0 deletions
19
tests/integration/incremental_unique_id_test/models/nontyped_trinary_unique_key_list.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,19 @@ | ||
-- for comparing against auto-typed seeds | ||
|
||
{{ | ||
config( | ||
materialized='incremental', | ||
unique_key=['state', 'county', 'city'] | ||
) | ||
}} | ||
|
||
select | ||
state as state, | ||
county as county, | ||
city as city, | ||
last_visit_date as last_visit_date | ||
from {{ ref('seed') }} | ||
|
||
{% if is_incremental() %} | ||
where last_visit_date > (select max(last_visit_date) from {{ this }}) | ||
{% endif %} |
2 changes: 2 additions & 0 deletions
2
tests/integration/incremental_unique_id_test/models/trinary_unique_key_list.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-- types needed to compare against expected model reliably | ||
|
||
{{ | ||
config( | ||
materialized='incremental', | ||
|
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