staging model

This commit is contained in:
Pablo Martin 2024-06-14 12:21:36 +02:00
parent e41774e6a4
commit 7e548f5feb

View 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