fixed off by one errors in date projections
This commit is contained in:
parent
9d11aa165b
commit
15ec3db1f2
1 changed files with 4 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ with
|
||||||
(
|
(
|
||||||
select max(most_recent_date_utc)
|
select max(most_recent_date_utc)
|
||||||
from most_recent_xe_date_per_curr_pair
|
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)
|
select max(most_recent_date_utc)
|
||||||
from most_recent_xe_date_per_curr_pair
|
from most_recent_xe_date_per_curr_pair
|
||||||
|
|
@ -77,7 +78,8 @@ with
|
||||||
(
|
(
|
||||||
select max(most_recent_date_utc)
|
select max(most_recent_date_utc)
|
||||||
from most_recent_xe_date_per_curr_pair
|
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
|
'1 day'::interval
|
||||||
) day_series
|
) day_series
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue