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 ) )