updated comments
This commit is contained in:
parent
a543fa1d83
commit
1bd2fd9585
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ with
|
||||||
row_number() over (
|
row_number() over (
|
||||||
partition by id_accommodation, start_date_utc
|
partition by id_accommodation, start_date_utc
|
||||||
order by
|
order by
|
||||||
start_date_utc desc, -- Prefers the latest effective start date
|
start_date_utc desc, -- Prefers the latest starting date
|
||||||
start_at_utc desc, -- In case of ties, prefers the most recent original start
|
start_at_utc desc, -- In case of ties, prefers the most recent starting time
|
||||||
coalesce(end_at_utc, {{ var("end_of_time") }}) desc
|
coalesce(end_at_utc, {{ var("end_of_time") }}) desc
|
||||||
) as rn
|
) as rn
|
||||||
from {{ ref("int_core__accommodation_to_product_bundle") }}
|
from {{ ref("int_core__accommodation_to_product_bundle") }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue