remove years into the future hardcode
This commit is contained in:
parent
2b878e9478
commit
d4decdcd8b
1 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
How deep into the future since the last available real rate should rates be
|
||||
projected. Must follow be a valid postgres interval string, such as '1 years'
|
||||
See examples here:
|
||||
https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT-EXAMPLES
|
||||
*/
|
||||
{% set interval_into_the_future = "'3 years'" %}
|
||||
|
||||
with
|
||||
stg_xedotcom__exchange_rates as (
|
||||
select * from {{ ref("stg_xedotcom__exchange_rates") }}
|
||||
|
|
@ -31,7 +39,7 @@ with
|
|||
select max(most_recent_date_utc)
|
||||
from most_recent_xe_date_per_curr_pair
|
||||
)::timestamp
|
||||
+ interval '3 years',
|
||||
+ interval {{ interval_into_the_future }},
|
||||
'1 day'::interval
|
||||
) day_series
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue