Skip to content

Commit 4319b61

Browse files
committed
Add test case for multiple dbt snapshots in one file
1 parent a3a17e2 commit 4319b61

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

tests/fixtures/dbt/sushi_test/snapshots/items_check_snapshot.sql

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/fixtures/dbt/sushi_test/snapshots/items_snapshot.sql renamed to tests/fixtures/dbt/sushi_test/snapshots/items_snapshots.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,19 @@
1414
select * from {{ source('streaming', 'items') }}
1515

1616
{% endsnapshot %}
17+
18+
{% snapshot items_check_snapshot %}
19+
20+
{{
21+
config(
22+
target_schema='snapshots',
23+
unique_key='id',
24+
strategy='check',
25+
check_cols=['ds'],
26+
invalidate_hard_deletes=True,
27+
)
28+
}}
29+
30+
select * from {{ source('streaming', 'items') }}
31+
32+
{% endsnapshot %}

0 commit comments

Comments
 (0)