add claim to staging
This commit is contained in:
parent
0ba3f13055
commit
81b900b6d2
1 changed files with 14 additions and 0 deletions
14
models/staging/core/stg_core__claim.sql
Normal file
14
models/staging/core/stg_core__claim.sql
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue