Skip to content

Commit

Permalink
Merge branch 'js-add-specs' of https://github.com/dbt-labs/docs.getdb…
Browse files Browse the repository at this point in the history
…t.com into js-add-specs
  • Loading branch information
mirnawong1 committed Jul 19, 2023
2 parents 6f9e3d7 + 728dc89 commit c329574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/docs/docs/build/incremental-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ from raw_app_data.events
{% if is_incremental() %}

-- this filter will only be applied on an incremental run
-- (uses > to include records whose timestamp occurred since the last run of this model)
where event_time > (select max(event_time) from {{ this }})

{% endif %}
Expand Down Expand Up @@ -137,6 +138,7 @@ from raw_app_data.events
{% if is_incremental() %}

-- this filter will only be applied on an incremental run
-- (uses >= to include records arriving later on the same day as the last run of this model)
where date_day >= (select max(date_day) from {{ this }})

{% endif %}
Expand Down

0 comments on commit c329574

Please sign in to comment.