staging model
This commit is contained in:
parent
e41774e6a4
commit
7e548f5feb
1 changed files with 14 additions and 0 deletions
14
models/staging/xedotcom/stg_xedotcom__exchange_rates.sql
Normal file
14
models/staging/xedotcom/stg_xedotcom__exchange_rates.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
with
|
||||||
|
raw_exchange_rates as (select * from {{ source("xedotcom", "exchange_rates") }}),
|
||||||
|
stg_xedotcom__exchange_rates as (
|
||||||
|
select
|
||||||
|
{{ adapter.quote("from_currency") }},
|
||||||
|
{{ adapter.quote("to_currency") }},
|
||||||
|
{{ adapter.quote("rate") }},
|
||||||
|
{{ adapter.quote("rate_date_utc") }},
|
||||||
|
{{ adapter.quote("exported_at_utc") }} as dwh_extracted_at_utc
|
||||||
|
|
||||||
|
from raw_exchange_rates
|
||||||
|
)
|
||||||
|
select *
|
||||||
|
from stg_xedotcom__exchange_rates
|
||||||
Loading…
Add table
Add a link
Reference in a new issue