From fef95774493fab7c8770a562f37dbe0efec9623a Mon Sep 17 00:00:00 2001 From: Reuven Gonzales Date: Wed, 14 Aug 2024 10:40:30 -0700 Subject: [PATCH] Materialize int events daily to a table (#1951) Materialize int events daily to table --- .../events/int_events_daily_to_artifact.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/warehouse/dbt/models/intermediate/events/int_events_daily_to_artifact.sql b/warehouse/dbt/models/intermediate/events/int_events_daily_to_artifact.sql index b1b919909..148696247 100644 --- a/warehouse/dbt/models/intermediate/events/int_events_daily_to_artifact.sql +++ b/warehouse/dbt/models/intermediate/events/int_events_daily_to_artifact.sql @@ -4,6 +4,17 @@ we need to select distinct first and then do the grouping #} +{{ + config( + materialized='table', + partition_by={ + "field": "time", + "data_type": "timestamp", + "granularity": "day", + } + ) +}} + with events as ( select distinct from_artifact_id,