You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Steve Yurong Su (Jira)" <ji...@apache.org> on 2022/02/23 11:56:00 UTC

[jira] [Created] (IOTDB-2595) UDF: transform analogy quantity to on-off quantity

Steve Yurong Su created IOTDB-2595:
--------------------------------------

             Summary: UDF: transform analogy quantity to on-off quantity
                 Key: IOTDB-2595
                 URL: https://issues.apache.org/jira/browse/IOTDB-2595
             Project: Apache IoTDB
          Issue Type: Wish
          Components: Core/Query
            Reporter: Steve Yurong Su


input: a time series (type: INT32, INT64, FLOAT or DOUBLE)

output: a time series (type: BOOLEAN)

 

parameters:

threshold (double): if value >= threshold, output true, otherwise false

 

usage:

select s1, f(s1, 'threshold'='1.5') from root.sg.d

 

 
||Time||root.sg.d.s1||f(root.sg.d.s1)||
|1|1.2|false|
|2|3.4|true|
|3|5.6|true|
|4|1.0|false|

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)