Merged PR 3469: Switches Listing and Deal metrics
# Description Switches Listings and Deal metrics to production. I also modified the dependencies on the old lifecycles to read from the news, so we can remove these in a following PR. I'm considering re-computing also the dimension - specific models to operate within KPIs folder, but will do this later on in a dedicated PR. # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #23761
This commit is contained in:
parent
335ba9a29b
commit
5e1b418570
4 changed files with 63 additions and 49 deletions
|
|
@ -9,8 +9,8 @@ with
|
|||
int_dates_mtd_by_dimension as (
|
||||
select * from {{ ref("int_dates_mtd_by_dimension") }}
|
||||
),
|
||||
int_core__mtd_accommodation_segmentation as (
|
||||
select * from {{ ref("int_core__mtd_accommodation_segmentation") }}
|
||||
int_kpis__dimension_daily_accommodation as (
|
||||
select * from {{ ref("int_kpis__dimension_daily_accommodation") }}
|
||||
),
|
||||
int_core__deal as (select * from {{ ref("int_core__deal") }}),
|
||||
churn_metrics_per_date as (
|
||||
|
|
@ -43,9 +43,9 @@ with
|
|||
from int_monthly_12m_window_contribution_by_deal m12wc
|
||||
{% if dimension.dimension == "'by_number_of_listings'" %}
|
||||
inner join
|
||||
int_core__mtd_accommodation_segmentation mas
|
||||
on m12wc.id_deal = mas.id_deal
|
||||
and m12wc.date = mas.date
|
||||
int_kpis__dimension_daily_accommodation dda
|
||||
on m12wc.id_deal = dda.id_deal
|
||||
and m12wc.date = dda.date
|
||||
{% elif dimension.dimension == "'by_billing_country'" %}
|
||||
inner join
|
||||
int_core__deal ud
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue