From fa94bcdcfbebdea86d29fff23b7d6a62bbf9dea3 Mon Sep 17 00:00:00 2001 From: Lucas Perri Date: Wed, 13 Dec 2023 12:53:10 -0300 Subject: [PATCH] partition fee_stats --- models/marts/fee_stats_agg.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/models/marts/fee_stats_agg.sql b/models/marts/fee_stats_agg.sql index fe9d99c..dabbd65 100644 --- a/models/marts/fee_stats_agg.sql +++ b/models/marts/fee_stats_agg.sql @@ -1,6 +1,10 @@ {{ config( materialized='incremental', - unique_key=["day_agg"] + unique_key=["day_agg"], + partition_by={ + "field": "day_agg" + , "data_type": "date" + , "granularity": "month"} ) }}