fixed off by one errors in date projections

This commit is contained in:
Pablo Martin 2024-06-14 15:36:38 +02:00
parent 9d11aa165b
commit 15ec3db1f2

View file

@ -25,7 +25,8 @@ with
(
select max(most_recent_date_utc)
from most_recent_xe_date_per_curr_pair
)::timestamp,
)::timestamp
+ interval '1 days', -- we don't want to pick the last real day
(
select max(most_recent_date_utc)
from most_recent_xe_date_per_curr_pair
@ -77,7 +78,8 @@ with
(
select max(most_recent_date_utc)
from most_recent_xe_date_per_curr_pair
)::timestamp,
)::timestamp
- interval '2 days', -- we don't want to pick the last real day,
'1 day'::interval
) day_series
),