From 87517f6a92249f1ba255257a5792c5594d530514 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 26 Mar 2025 08:41:51 +0100 Subject: [PATCH] Listings offered services --- ...__metric_daily_new_dash_accommodation_offered_services.sql | 4 +++- models/intermediate/kpis/schema.yml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/intermediate/kpis/int_kpis__metric_daily_new_dash_accommodation_offered_services.sql b/models/intermediate/kpis/int_kpis__metric_daily_new_dash_accommodation_offered_services.sql index 2f1c292..bde0477 100644 --- a/models/intermediate/kpis/int_kpis__metric_daily_new_dash_accommodation_offered_services.sql +++ b/models/intermediate/kpis/int_kpis__metric_daily_new_dash_accommodation_offered_services.sql @@ -37,7 +37,9 @@ inner join inner join {{ ref("int_core__accommodation_to_product_bundle") }} as apb on bs.id_user_product_bundle = apb.id_user_product_bundle - and date between apb.effective_start_date_utc and apb.effective_end_date_utc + and date between apb.effective_start_date_utc and coalesce( + apb.effective_end_date_utc, {{ var("end_of_time") }} + ) left join {{ ref("int_kpis__dimension_daily_accommodation") }} as icmas on uh.id_deal = icmas.id_deal diff --git a/models/intermediate/kpis/schema.yml b/models/intermediate/kpis/schema.yml index 82f7495..b0aee31 100644 --- a/models/intermediate/kpis/schema.yml +++ b/models/intermediate/kpis/schema.yml @@ -7544,8 +7544,6 @@ models: - "PROTECTION" - "DEPOSIT_MANAGEMENT" - "GUEST_AGREEMENT" - - "UNKNOWN" - - "UNSET" - name: id_deal data_type: string description: Unique identifier of an account.