From 34eb4a2db60107d5db9b34a25ce5bca270ea494d Mon Sep 17 00:00:00 2001 From: Reuven Gonzales Date: Thu, 15 Aug 2024 17:16:07 -0700 Subject: [PATCH] Fix yet another typo (#1960) --- ...nt_timeseries_code_metrics_by_artifact_developer_days.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warehouse/dbt/models/intermediate/metrics/timeseries/int_timeseries_code_metrics_by_artifact_developer_days.sql b/warehouse/dbt/models/intermediate/metrics/timeseries/int_timeseries_code_metrics_by_artifact_developer_days.sql index e1ba2ba05..96f8aa214 100644 --- a/warehouse/dbt/models/intermediate/metrics/timeseries/int_timeseries_code_metrics_by_artifact_developer_days.sql +++ b/warehouse/dbt/models/intermediate/metrics/timeseries/int_timeseries_code_metrics_by_artifact_developer_days.sql @@ -28,7 +28,10 @@ calendar as ( GENERATE_ARRAY( 0, TIMESTAMP_DIFF( - (select MAX(bucket_day) as last_commit_date from commits), + ( + select MAX(bucket_day) as last_commit_date + from {{ ref("int_timeseries_code_metrics_commits") }} + ), first_commit_date, day ) )