Skip to content

Commit

Permalink
Update enriched_history_operations.sql
Browse files Browse the repository at this point in the history
added missing endif to incremental logic
  • Loading branch information
PerriLucas authored Dec 11, 2023
1 parent 365e8cf commit f49cc18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/marts/enriched_history_operations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ with
{% if is_incremental() %}
and cast(batch_run_date as date) >= date('{{ dbt_airflow_macros.ds() }}') -- batch run is the min bound of a batch
and date(closed_at) >= date_sub(date('{{ dbt_airflow_macros.ds() }}'), interval 1 day)
{% endif %}
)

, history_transactions as (
Expand Down Expand Up @@ -194,6 +195,7 @@ with
{% if is_incremental() %}
and cast(batch_run_date as date) >= date('{{ dbt_airflow_macros.ds() }}') -- batch run is the min bound of a batch
and date(closed_at) >= date_sub(date('{{ dbt_airflow_macros.ds() }}'), interval 1 day)
{% endif %}

)

Expand Down

0 comments on commit f49cc18

Please sign in to comment.