Usage of incremental mode with insert_overwrite on a range of dates #11006
-
Hi everyone! I have following setup:
My model config look like:
I have 2 variables that I want to use in my partition recalculation:
Now I want to overwrite every run specific amount of partitions that are located between When I try to generate dates range with following macro:
The result of logging is:
But when I try to
I already tried to wrap this values with quotes, but nothing helps. Do you have any ideas how to work with it? Thank you in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems I messed up with quotes. {% set var_load_date_from = var('start', (modules.datetime.datetime.utcnow() - modules.datetime.timedelta(days=1)).strftime('%Y-%m-%d')) %}
{% set var_load_date_to = var('end', modules.datetime.datetime.utcnow().strftime('%Y-%m-%d')) %}
{% set dates_range = dates_in_range(var_load_date_from, var_load_date_to, '%Y-%m-%d', "'%Y-%m-%d'") %} |
Beta Was this translation helpful? Give feedback.
Seems I messed up with quotes.
Was fixed by: