Skip to content

Usage of incremental mode with insert_overwrite on a range of dates #11006

Closed Answered by vladislav-bakanov
vladislav-bakanov asked this question in Q&A
Discussion options

You must be logged in to vote

Seems I messed up with quotes.
Was fixed by:

{% 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'") %}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vladislav-bakanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant