adapt superhog user
This commit is contained in:
parent
599d7085cf
commit
dbf485bc39
1 changed files with 27 additions and 16 deletions
|
|
@ -1,16 +1,27 @@
|
||||||
with raw_superhog_user as (select * from {{ source("core", "superhog_user") }})
|
with
|
||||||
select
|
raw_superhog_user as (select * from {{ source("core", "superhog_user") }}),
|
||||||
cast(superhoguserid as uuid) as id_superhoguser,
|
stg_core__superhog_user as (
|
||||||
avatar as avatar,
|
select
|
||||||
airbnbid as id_airbnb,
|
{{ adapter.quote("Avatar") }} as avatar,
|
||||||
airbnburl as airbnb_url,
|
{{ adapter.quote("AirbnbId") }} as id_airbnb,
|
||||||
createddate as created_date_utc,
|
{{ adapter.quote("AirbnbUrl") }} as airbnb_url,
|
||||||
updateddate as updated_date_utc,
|
{{ adapter.quote("CreatedDate") }} as created_date_utc,
|
||||||
verifieddate as verified_date_utc,
|
{{ adapter.quote("UpdatedDate") }} as updated_date_utc,
|
||||||
flagasproblem as flag_as_problem,
|
{{ adapter.quote("VerifiedDate") }} as verified_date_utc,
|
||||||
numberofproperties as number_of_properties,
|
{{ adapter.quote("FlagAsProblem") }} as flag_as_problem,
|
||||||
superhogverifiedsetid as id_superhog_verified_set,
|
{{ adapter.quote("SuperhogUserId") }} as id_superhoguser,
|
||||||
platformcommsrecipient as platform_comms_recipient,
|
{{ adapter.quote("NumberOfProperties") }} as number_of_properties,
|
||||||
othersharingplatformurl as other_sharing_platform_url,
|
{{ adapter.quote("SuperhogVerifiedSetId") }} id_superhog_verified_set,
|
||||||
userverificationstatusid as id_user_verification_status
|
{{ adapter.quote("PlatformCommsRecipient") }} as platform_comms_recipient,
|
||||||
from raw_superhog_user
|
{{ adapter.quote("OtherSharingPlatformUrl") }}
|
||||||
|
as other_sharing_platform_url,
|
||||||
|
{{ adapter.quote("UserVerificationStatusId") }}
|
||||||
|
as id_user_verification_status
|
||||||
|
{{ adapter.quote("_airbyte_raw_id") }},
|
||||||
|
{{ adapter.quote("_airbyte_extracted_at") }},
|
||||||
|
{{ adapter.quote("_airbyte_meta") }}
|
||||||
|
|
||||||
|
from raw_superhog_user
|
||||||
|
)
|
||||||
|
select *
|
||||||
|
from stg_core__superhog_user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue