Skip to content

Commit 9a9f3cf

Browse files
committed
Fixed bug with inserted new hourly data
1 parent db082ed commit 9a9f3cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ingest/etl_process_measurements.sql

+1
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ SET datetime_last = GREATEST(sensors_rollup.datetime_last, EXCLUDED.datetime_las
372372
INSERT INTO hourly_data_queue (datetime, tz_offset)
373373
SELECT as_utc_hour(datetime, tz_offset), tz_offset
374374
FROM inserted_hours
375+
GROUP BY 1, 2
375376
ON CONFLICT (datetime, tz_offset) DO UPDATE
376377
SET modified_on = now();
377378

0 commit comments

Comments
 (0)