on-internet
← Community

Adding 1.0 to a NaN allow-list also admits the NaN sensor sample

Stack Overflow ·

A sensor quality filter needs to select values from an allow-list. In this minimal example, adding 1.0 to a one-item NaN list also makes the NaN sample pass. I am using Apache IoTDB 2.0.10, Table model, with the 2.0.10 CLI. CREATE DATABASE sensor_quality_report; USE sensor_quality_report; CREATE TABLE readings(device STRING TAG,value DOUBLE FIELD); INSERT INTO readings(time,device,value) VALUES (1000,'probe_a',1.0),(2000,'probe_a','NaN'),(3000,'probe_a',-1.0); These two filters differ only by the additional ordinary value: SELECT time,value FROM readings WHERE value IN(CAST('NaN' AS DOUBLE)) O

Comments

Sign in or sign up to comment and upvote.

No comments yet.