From a2e5d0f980d033071d5ce15282e7cb0551b758ee Mon Sep 17 00:00:00 2001 From: "Reuven V. Gonzales" Date: Sun, 15 Dec 2024 19:41:24 +0000 Subject: [PATCH] Attempt to fix an issue with trino max partitions errors --- warehouse/metrics_mesh/models/first_of_event_from_artifact.sql | 2 +- warehouse/metrics_mesh/models/last_of_event_from_artifact.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/warehouse/metrics_mesh/models/first_of_event_from_artifact.sql b/warehouse/metrics_mesh/models/first_of_event_from_artifact.sql index 2b2d29927..4184c7aae 100644 --- a/warehouse/metrics_mesh/models/first_of_event_from_artifact.sql +++ b/warehouse/metrics_mesh/models/first_of_event_from_artifact.sql @@ -1,7 +1,7 @@ MODEL ( name metrics.first_of_event_from_artifact, kind FULL, - partitioned_by (day("time"), "event_type", "event_source"), + partitioned_by (year("time"), "event_type", "event_source"), grain ( time, event_type, diff --git a/warehouse/metrics_mesh/models/last_of_event_from_artifact.sql b/warehouse/metrics_mesh/models/last_of_event_from_artifact.sql index 0b923df8e..737129812 100644 --- a/warehouse/metrics_mesh/models/last_of_event_from_artifact.sql +++ b/warehouse/metrics_mesh/models/last_of_event_from_artifact.sql @@ -1,7 +1,7 @@ MODEL ( name metrics.last_of_event_from_artifact, kind FULL, - partitioned_by (day("time"), "event_type", "event_source"), + partitioned_by (year("time"), "event_type", "event_source"), grain ( time, event_type,