Merged PR 5353: Switch int_core__booking_summary to int_booking_summary

# Description

This PR does the following:
* Moves `core/int_core__booking_summary` to `cross/int_core__booking_summary`
* Renames the model `cross/int_core__booking_summary` to `cross/int_booking_summary`
* Same for schema entry. In the new schema, I just added in the description how to retrieve exclusively New Dash Bookings for usability purposes.

Then, it adapts any dependency on `int_core__booking_summary` to `int_booking_summary`

No additional changes - inclusion of Resolution Incidents data will come later in a different 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] 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: #30676
This commit is contained in:
Oriol Roqué Paniagua 2025-05-30 12:51:10 +00:00
parent a9a1e68624
commit d33e5ff2b2
17 changed files with 399 additions and 393 deletions

View file

@ -23,7 +23,7 @@ left join
on icuh.id_deal = icmas.id_deal
and icb.booking_fee_charge_date_utc = icmas.date
left join
{{ ref("int_core__booking_summary") }} as icbs on icb.id_booking = icbs.id_booking
{{ ref("int_booking_summary") }} as icbs on icb.id_booking = icbs.id_booking
where
icb.is_duplicate_booking = false
and icb.booking_fee_charge_date_utc is not null
@ -48,7 +48,7 @@ select
) as active_accommodations_per_deal_segmentation,
-- Metrics --
count(distinct icbs.id_booking) as billable_bookings
from {{ ref("int_core__booking_summary") }} icbs
from {{ ref("int_booking_summary") }} icbs
left join {{ ref("int_core__deal") }} as icd on icbs.id_deal = icd.id_deal
left join
{{ ref("int_kpis__dimension_daily_accommodation") }} as icmas