add claim to staging

This commit is contained in:
Pablo Martin 2024-08-12 10:42:29 +02:00
parent 0ba3f13055
commit 81b900b6d2

View file

@ -0,0 +1,14 @@
with
raw_claim as (select * from {{ source("core", "Claim") }}),
stg_core__claim as (
select
{{ adapter.quote("Id") }} as id_claim,
{{ adapter.quote("UserId") }} as id_user,
{{ adapter.quote("ClaimType") }} as claim_type,
{{ adapter.quote("ClaimValue") }} as claim_value,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
from raw_claim
)
select *
from stg_core__claim