addressed Pablo's comments, removed the repetitive casts, added some nut_null tests and fixed some of the names and descriptions discrepancies
This commit is contained in:
parent
ad2eb2544c
commit
6adc424963
6 changed files with 96 additions and 48 deletions
|
|
@ -5,9 +5,9 @@ with
|
|||
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_verification,
|
||||
id_booking,
|
||||
id_user as id_user_host,
|
||||
id_user as id_user_partner,
|
||||
id_listing as id_accommodation,
|
||||
version, -- V1 for Guesty and V2 for E-deposit
|
||||
case
|
||||
|
|
@ -15,14 +15,16 @@ select
|
|||
end as verification_source,
|
||||
verification_status,
|
||||
verification_status_reason,
|
||||
nightly_fee_local,
|
||||
cast(nightly_fee_local as float),
|
||||
cast(checkout_at_utc as date) - cast(checkin_at_utc as date) as number_nights,
|
||||
email_flag,
|
||||
phone_flag,
|
||||
watch_list,
|
||||
channel,
|
||||
checkin_at_utc,
|
||||
cast(checkin_at_utc as date) as checkin_date_utc,
|
||||
checkout_at_utc,
|
||||
cast(checkout_at_utc as date) as checkout_date_utc,
|
||||
is_cancelled,
|
||||
cancelled_at_utc,
|
||||
user_email,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue