From 8a2c33321868952f3c235fc0fb551bfecd14cf2d Mon Sep 17 00:00:00 2001 From: Carl Cervone <42869436+ccerv1@users.noreply.github.com> Date: Mon, 2 Dec 2024 07:48:29 -0500 Subject: [PATCH] fix(dbt): explicitly ensure pr merge date > create date (#2555) --- .../metrics/code/int_code_metric__time_to_merge_days_average.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/warehouse/dbt/models/intermediate/metrics/code/int_code_metric__time_to_merge_days_average.sql b/warehouse/dbt/models/intermediate/metrics/code/int_code_metric__time_to_merge_days_average.sql index 08ee27262..aa0610b86 100644 --- a/warehouse/dbt/models/intermediate/metrics/code/int_code_metric__time_to_merge_days_average.sql +++ b/warehouse/dbt/models/intermediate/metrics/code/int_code_metric__time_to_merge_days_average.sql @@ -32,6 +32,7 @@ time_to_merge as ( on pr.number = m.number and pr.to_artifact_id = m.to_artifact_id + where m.merged_at > pr.created_at ), time_to_merge_events as (