You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "FengQingxin (Jira)" <ji...@apache.org> on 2022/01/12 06:44:00 UTC

[jira] [Created] (IOTDB-2360) [ext]Can not be used in master branch

FengQingxin created IOTDB-2360:
----------------------------------

             Summary: [ext]Can not be used in master branch
                 Key: IOTDB-2360
                 URL: https://issues.apache.org/jira/browse/IOTDB-2360
             Project: Apache IoTDB
          Issue Type: New Feature
            Reporter: FengQingxin


Add a new aggregation function: ext

 

Return the value that has the maximum absolute value.

If the maximum absolute value of a positive value and a negative value is equal, return the positive value.

 

For example:

time:1,2,3,4,5

value:1,10,-4,3,4

 

select ext(s1) from root.sg.d where time >=1 and time <=5 

return  10

 

select ext(s1) from root.sg.d where time >=3 and time <=4 

return  -4

 

select ext(s1) from root.sg.d where time >=3 and time <=5 

return  4



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