use proper table, proper col, and remove off by one error
This commit is contained in:
parent
a8892e7d5d
commit
1203d0921b
1 changed files with 3 additions and 4 deletions
|
|
@ -82,12 +82,11 @@ with
|
|||
from
|
||||
generate_series
|
||||
(
|
||||
{{ var("start_date") }}::timestamp,
|
||||
'2020-01-01'::timestamp,
|
||||
(
|
||||
select max(most_recent_date_utc)
|
||||
from most_recent_xe_date_per_curr_pair
|
||||
select min(oldest_date_utc) from oldest_xe_date_per_curr_pair
|
||||
)::timestamp
|
||||
- interval '2 days', -- we don't want to pick the last real day,
|
||||
- interval '1 days', -- we don't want to pick the last real day,
|
||||
'1 day'::interval
|
||||
) day_series
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue