From 0ecaf87bc9d42126817bdb61025c42e8e73db307 Mon Sep 17 00:00:00 2001 From: anandgupta42 Date: Tue, 24 Mar 2026 10:28:38 -0700 Subject: [PATCH 1/2] feat: convert dim_products to incremental --- models/marts/dim_products.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/models/marts/dim_products.sql b/models/marts/dim_products.sql index 48d4b25..2d59c92 100644 --- a/models/marts/dim_products.sql +++ b/models/marts/dim_products.sql @@ -1,3 +1,11 @@ +{{ + config( + materialized='incremental', + unique_key='order_id', + incremental_strategy='merge' + ) +}} + with products as ( select * from {{ ref('stg_products') }} @@ -46,3 +54,7 @@ final as ( ) select * from final + +{% if is_incremental() %} +where revenue_date > (select max(revenue_date) from {{ this }}) +{% endif %} From f7f7e53f129638f0e5f908b17a3b60f86e6b1d6b Mon Sep 17 00:00:00 2001 From: anandgupta42 Date: Tue, 24 Mar 2026 10:41:40 -0700 Subject: [PATCH 2/2] retrigger: action fixed