remove years into the future hardcode

This commit is contained in:
Pablo Martin 2024-06-14 16:15:00 +02:00
parent 2b878e9478
commit d4decdcd8b

View file

@ -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
),