add currency source and stg
This commit is contained in:
parent
322fcb8eb0
commit
9c293e8bf4
2 changed files with 16 additions and 0 deletions
|
|
@ -199,4 +199,6 @@ sources:
|
|||
identifier: PricePlanToUser
|
||||
- name: PricePlanChargedByType
|
||||
identifier: PricePlanChargedByType
|
||||
- name: Currency
|
||||
identifier: Currency
|
||||
|
||||
|
|
|
|||
14
models/staging/core/stg_core__currency.sql
Normal file
14
models/staging/core/stg_core__currency.sql
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue