Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dgitis committed Jul 21, 2024
1 parent 6312c46 commit b9fa91d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions macros/combine_property_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
{% if not should_full_refresh() %}
{# If incremental, then use static_incremental_days variable to find earliest shard to copy #}
{%- set earliest_shard_to_retrieve = (modules.datetime.date.today() - modules.datetime.timedelta(days=var('static_incremental_days')))|string|replace("-", "")|int -%}
{# If incremental, then use static_incremental_days variable to find earliest shard to copy #}
{%- set earliest_shard_to_retrieve = (modules.datetime.date.today() - modules.datetime.timedelta(days=var('static_incremental_days')))|string|replace("-", "")|int -%}
{% else %}
{# Otherwise use 'start_date' variable #}
{%- set earliest_shard_to_retrieve = var('start_date')|int -%}
{# Otherwise use 'start_date' variable #}
{%- set earliest_shard_to_retrieve = var('start_date')|int -%}
{% endif %}
{% for property_id in var('property_ids') %}
{%- set schema_name = "analytics_" + property_id|string -%}
Expand Down

0 comments on commit b9fa91d

Please sign in to comment.