Skip to content

Commit 6e7ab7b

Browse files
committed
Sample test to reproduce bug_179
1 parent 7b54b51 commit 6e7ab7b

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ config(materialized='table') }}
2+
3+
SELECT
4+
id,
5+
label,
6+
current_timestamp AS created_at
7+
FROM {{ ref('dummy_table') }}
8+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
select id,
2+
label,
3+
created_at
4+
from {{ ref ('dummy_model') }}
5+
where id != 2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id,label
2+
1,first
3+
2,second
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
{% snapshot new_snapshot_dummy_table %}
3+
4+
{{
5+
config(
6+
strategy = 'timestamp'
7+
, unique_key = 'id'
8+
, updated_at = 'created_at'
9+
, hard_deletes = 'new_record'
10+
)
11+
}}
12+
13+
SELECT * FROM {{ ref ('dummy_model') }}
14+
15+
{% endsnapshot %}

0 commit comments

Comments
 (0)