Thingies
This commit is contained in:
parent
7480222cc7
commit
1e53b3895c
2 changed files with 44 additions and 1 deletions
17
code_thingies/dbtlearn/snapshots/scd_raw_listings.sql
Normal file
17
code_thingies/dbtlearn/snapshots/scd_raw_listings.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% snapshot scd_raw_listings %}
|
||||
|
||||
{{
|
||||
config(
|
||||
target_schema = 'dev',
|
||||
unique_key = 'id',
|
||||
strategy = 'timestamp',
|
||||
updated_at = 'updated_at',
|
||||
invalidate_hard_deletes = True
|
||||
)
|
||||
}}
|
||||
|
||||
SELECT *
|
||||
FROM
|
||||
{{ source('airbnb', 'listings')}}
|
||||
|
||||
{% endsnapshot %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue