add composite key

This commit is contained in:
Pablo Martin 2024-06-14 13:15:35 +02:00
parent 7e548f5feb
commit 8979f4d092

View file

@ -2,6 +2,11 @@ with
raw_exchange_rates as (select * from {{ source("xedotcom", "exchange_rates") }}),
stg_xedotcom__exchange_rates as (
select
concat(
{{ adapter.quote("from_currency") }},
{{ adapter.quote("to_currency") }},
{{ adapter.quote("rate_date_utc") }}
) as id_exchange_rate,
{{ adapter.quote("from_currency") }},
{{ adapter.quote("to_currency") }},
{{ adapter.quote("rate") }},