add currency source and stg

This commit is contained in:
Pablo Martin 2024-05-24 11:32:54 +02:00
parent 322fcb8eb0
commit 9c293e8bf4
2 changed files with 16 additions and 0 deletions

View file

@ -199,4 +199,6 @@ sources:
identifier: PricePlanToUser
- name: PricePlanChargedByType
identifier: PricePlanChargedByType
- name: Currency
identifier: Currency

View file

@ -0,0 +1,14 @@
with
raw_currency as (select * from {{ source("core", "Currency") }}),
stg_core__currency as (
select
{{ adapter.quote("Id") }} as id_currency,
{{ adapter.quote("Name") }} as currency_name,
{{ adapter.quote("IsoCode") }} as iso4217_code,
{{ adapter.quote("DisplayOrder") }} as display_order,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extract_at_utc
from raw_currency
)
select *
from stg_core__currency