Added missing values

This commit is contained in:
Joaquin Ossa 2024-12-03 10:37:05 +01:00
parent 7a987d92c4
commit d6f30a8e67
7 changed files with 32 additions and 5 deletions

View file

@ -1,3 +1,5 @@
{% set nightly_fee_local = 2 %}
with stg_athena__verifications as (select * from {{ ref("stg_athena__verifications") }})
select
-- note that these ids are not the same as the ones found in Core DWH
@ -9,7 +11,7 @@ select
version,
case when version = 'V1' then 'Guesty' else null end as verification_source,
verification_status,
nightly_fee_local,
{{ nightly_fee_local }} as nightly_fee_local,
cast(checkout_at_utc as date) - cast(checkin_at_utc as date) as number_nights,
email_flag,
phone_flag,
@ -31,9 +33,12 @@ select
property_manager_name,
property_manager_email,
listing_name,
listing_address,
listing_town,
listing_country,
listing_postcode,
level_of_protection_amount,
level_of_protection_currency,
pets_allowed,
status_updated_at_utc,
status_updated_date_utc,

View file

@ -143,6 +143,10 @@ models:
data_type: text
description: ""
- name: listing_address
data_type: text
description: ""
- name: listing_town
data_type: text
description: ""