Jialin Qiao created IOTDB-1391:
----------------------------------

             Summary: Add a new Aggregation function ext
                 Key: IOTDB-1391
                 URL: https://issues.apache.org/jira/browse/IOTDB-1391
             Project: Apache IoTDB
          Issue Type: New Feature
            Reporter: Jialin Qiao


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.3.4#803005)

Reply via email to