An all-device alarm filter rejects equal string constants
In an alarm dashboard, an operator can select one device or show all devices. I am testing the all-device branch in the table dialect on Apache IoTDB 2.0.11. The minimal setup and failing operation are: CREATE DATABASE alarm_console; USE alarm_console; CREATE TABLE alerts(device STRING TAG,severity INT32 FIELD); INSERT INTO alerts(time,device,severity) VALUES(1000,'pump_a',1),(2000,'pump_b',2); USE alarm_console; SELECT device,severity FROM alerts WHERE ('all'='all' OR device='pump_a') ORDER BY time; Observed result: Msg: The statement is executed successfully. Msg: org.apache.iotdb.jdbc.IoTDB
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.