From 24d9188cde9605c48697dff9eeede4d8809535b1 Mon Sep 17 00:00:00 2001 From: Hang Gao Date: Wed, 8 Jan 2025 18:29:39 +0000 Subject: [PATCH] commit one change --- .../int_clearinghouse__detector_outlier_agg_five_minutes.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transform/models/intermediate/clearinghouse/int_clearinghouse__detector_outlier_agg_five_minutes.sql b/transform/models/intermediate/clearinghouse/int_clearinghouse__detector_outlier_agg_five_minutes.sql index ae25b9c2..56fbeda6 100644 --- a/transform/models/intermediate/clearinghouse/int_clearinghouse__detector_outlier_agg_five_minutes.sql +++ b/transform/models/intermediate/clearinghouse/int_clearinghouse__detector_outlier_agg_five_minutes.sql @@ -32,7 +32,7 @@ good_detectors as ( ), -- filter last month's data for good detectors only -filtered_five_minute_agg as ( +filtered_five_minute_agg_lastmonth as ( select f.detector_id, f.sample_date, @@ -55,7 +55,7 @@ monthly_stats as ( -- consider using max_capacity percentile_cont(0.95) within group (order by volume_sum) as volume_95th, percentile_cont(0.95) within group (order by occupancy_avg) as occupancy_95th - from filtered_five_minute_agg + from filtered_five_minute_agg_lastmonth group by detector_id ),