Skip to content

Commit

Permalink
Change where clause in unique_key example
Browse files Browse the repository at this point in the history
The where clause in the unique_key example referred to event_time, but event_time isn't in the select statement. So this should be updated to date_day.
  • Loading branch information
bethanyhipple-dbtlabs authored Aug 6, 2024
1 parent 264443c commit 780b9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/docs/build/incremental-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ from {{ ref('app_data_events') }}

-- 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 coalesce(max(event_time), '1900-01-01') from {{ this }})
where date_day >= (select coalesce(max(date_day), '1900-01-01') from {{ this }})

{% endif %}

Expand Down

0 comments on commit 780b9f3

Please sign in to comment.