Skip to content

Commit 013930d

Browse files
authored
Merge pull request #182 from oracle/bug_179_sample_test_data
bug_179_sample data test
2 parents 7a0cccc + 89e3595 commit 013930d

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
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 ('label_data') }}
5+
where id != 2
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{ config(materialized='table') }}
2+
3+
SELECT
4+
id,
5+
label,
6+
current_timestamp AS created_at
7+
FROM {{ ref('label_table') }}
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+
{% snapshot snapshot_label_table %}
2+
3+
{{
4+
config(
5+
strategy = 'timestamp'
6+
, unique_key = 'id'
7+
, updated_at = 'created_at'
8+
, hard_deletes = 'new_record'
9+
)
10+
}}
11+
12+
SELECT * FROM {{ ref ('label_data') }}
13+
14+
{% endsnapshot %}
15+

0 commit comments

Comments
 (0)