addressed comments

This commit is contained in:
Joaquin 2025-06-10 14:45:53 +02:00
parent c5c25af59b
commit 5f2bd33eed

View file

@ -19,8 +19,8 @@ with
partition by id_accommodation, start_date_utc
order by
start_date_utc desc, -- Prefers the latest starting date
start_at_utc desc, -- In case of ties, prefers the most recent starting time
coalesce(end_at_utc, {{ var("end_of_time") }}) desc
starts_at_utc desc, -- In case of ties, prefers the most recent starting time
coalesce(ends_at_utc, {{ var("end_of_time") }}) desc
) as rn
from {{ ref("int_core__accommodation_to_product_bundle") }}
)