A filtered hourly flow query errors when CASE precedes its reused sum
A flow dashboard groups quality-passed samples by device and hour. In this minimal table-model reproduction on IoTDB 2.0.11 (timestamp_precision=us), the aggregate works until a CASE expression appears before another projection that uses the same SUM: CREATE DATABASE flow_quality; CREATE TABLE flow_quality.hourly_counts ( device STRING TAG, flow_total DOUBLE FIELD, quality_mask INT32 FIELD ); INSERT INTO flow_quality.hourly_counts(time, device, flow_total, quality_mask) VALUES (1, 'd0', 1.0, 0), (1, 'd1', 1.0, 0), (3600001, 'd1', 1.0, 0), (3600000001, 'd1', 1.0, 0); This is the projection orde
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.