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:
Joaquin Ossa 2024-08-28 15:00:22 +02:00
parent 167645428e
commit b333b45891

View file

@ -3,10 +3,13 @@ with
select * from {{ ref("stg_edeposit__verifications") }}
)
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_booking,
id_user as id_user_host,
id_listing as id_accommodation,
version, -- V1 for Guesty and V2 for E-deposit
case
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
end as verification_source,