[
https://issues.apache.org/jira/browse/IOTDB-4325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liaolanyu reassigned IOTDB-4325:
--------------------------------
Sprint: 2022-8-Cluster
Assignee: liaolanyu
> NaN and Infinity will be regard as positive Infinity in where clause in 0.14.0
> ------------------------------------------------------------------------------
>
> Key: IOTDB-4325
> URL: https://issues.apache.org/jira/browse/IOTDB-4325
> Project: Apache IoTDB
> Issue Type: Bug
> Affects Versions: 0.14.0-SNAPSHOT
> Environment: Windows 10
> Reporter: Tao Yi
> Assignee: liaolanyu
> Priority: Minor
> Attachments: image-2022-09-03-22-12-34-553.png
>
>
> In IoTDB-0.14.0-SNAPSHOT, I try to use UDF function and Binary Arithmetic
> Operators to get some invalid results like Infinity and NaN. However,
> Infinity and NaN will not be filtered by where xx > 0 clause. It seems that
> Infinity and NaN both regard as a positive Infinity float value, this might
> be wrong when sometimes we need to filter those Invalid value.
> I execute the following statements
> create timeseries root.sg1.d1.t1 with datatype=FLOAT, encoding=plain;
> create timeseries root.sg1.d1.t2 with datatype=FLOAT, encoding=plain;
> insert into root.sg1.d1(timestamp, t1, t2) values(1, 1, -1);
> insert into root.sg1.d1(timestamp, t1, t2) values(2, 1, 0);
> select t1, t2, t1/t2 from root.sg1.d1 where t1/t2 > 10;
> select t1, t2, sqrt(t2) from root.sg1.d1 where sqrt(t2) > 10;
> The result:
> !image-2022-09-03-22-12-34-553.png|width=759,height=266!
> The result means that the where clause will regard some NaN values sqrt(-1)
> or Infinity (1/0) as a value > 10, which is unreasonable.
> So if this is a bug? Or we can't use the where clause like this? (Which
> should be mentioned in the document) Thanks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)