Added some comments to make it clear that ids here are unrelated to core dwh, I will come back to modify the schemas when Ray answers all of our questions related to this data
This commit is contained in:
parent
167645428e
commit
b333b45891
1 changed files with 3 additions and 0 deletions
|
|
@ -3,10 +3,13 @@ with
|
||||||
select * from {{ ref("stg_edeposit__verifications") }}
|
select * from {{ ref("stg_edeposit__verifications") }}
|
||||||
)
|
)
|
||||||
select
|
select
|
||||||
|
-- note that these ids are not the same as the ones found in Core DWH
|
||||||
|
-- they are completely unrelated
|
||||||
id as id_verification,
|
id as id_verification,
|
||||||
id_booking,
|
id_booking,
|
||||||
id_user as id_user_host,
|
id_user as id_user_host,
|
||||||
id_listing as id_accommodation,
|
id_listing as id_accommodation,
|
||||||
|
version, -- V1 for Guesty and V2 for E-deposit
|
||||||
case
|
case
|
||||||
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
|
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
|
||||||
end as verification_source,
|
end as verification_source,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue