addressed comments
This commit is contained in:
parent
c5c25af59b
commit
5f2bd33eed
1 changed files with 2 additions and 2 deletions
|
|
@ -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") }}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue