Skip to content

Commit

Permalink
Suggest >= consistently in incremental models
Browse files Browse the repository at this point in the history
  • Loading branch information
skion authored Feb 22, 2024
1 parent 0dcfdb3 commit 4b3d2b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/docs/build/incremental-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ 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 }})
-- (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 @@ -434,7 +434,7 @@ with large_source_table as (

select * from {{ ref('large_source_table') }}
{% if is_incremental() %}
where session_start > dateadd(day, -3, current_date)
where session_start >= dateadd(day, -3, current_date)
{% endif %}

),
Expand Down

0 comments on commit 4b3d2b9

Please sign in to comment.