You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to test the incremental behavior of models using an incremental strategy that requires partitioning (insert_overwrite or delete+insert). See #8422.
If I have an incremental model that uses a strategy that uses "partitioning":
{{
config(
materialized='incremental',
unique_key='date_day',
incremental_strategy='insert_overwrite',
...
)
}}
select
date_trunc('day', event_at) as date_day,
count(distinct user_id) as daily_active_users
from {{ ref('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 >= (selectmax(date_day) from {{ this }})
{% endif %}
group by1
I should be able to add a unit test to this model and have it work as expected.
github-actionsbot
changed the title
Ability to test the incremental behavior of models using incremental strategy that requires partitioning
[CT-3129] Ability to test the incremental behavior of models using incremental strategy that requires partitioning
Sep 18, 2023
Description
Ability to test the incremental behavior of models using an incremental strategy that requires partitioning (
insert_overwrite
ordelete+insert
). See #8422.If I have an incremental model that uses a strategy that uses "partitioning":
I should be able to add a unit test to this model and have it work as expected.
Acceptance Criteria
Unit testing of incremental models with
insert_overwrite
ordelete+insert
strategy.Impact to Other Teams
None
Will backports be required?
No
Context
The text was updated successfully, but these errors were encountered: