You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Lei Rui (Jira)" <ji...@apache.org> on 2021/12/14 16:09:00 UTC

[jira] [Commented] (IOTDB-2091) Support aggregation with UDF nested query

    [ https://issues.apache.org/jira/browse/IOTDB-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459275#comment-17459275 ] 

Lei Rui commented on IOTDB-2091:
--------------------------------

> Currently we have already support udf nested query , i.e. f(g(a)).
|| ||f||g(a)||f(g(a))||example||supported||
|1|single-point calculation|time series|time series|sin(cos(s1)), sin(top_k(s1,'k'='5')|yes|
|2|single-point calculation|numerical value|numerical value|sin(sum(s1)), cos(max_value(s1))|yes, but sin(extreme(s1)) is not supported|
|3|aggregation|time series|numerical value|sum(sin(s1)), max_value(s1-s2) |not yet|
|4|aggregation|numerical value| |/|/|
 * Is the support of case 3 discussed or on the agenda?
 * I found that sin({*}extreme{*}(s1)) is not supported in case 2.

> Support aggregation with UDF nested query
> -----------------------------------------
>
>                 Key: IOTDB-2091
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2091
>             Project: Apache IoTDB
>          Issue Type: New Feature
>          Components: Core/Engine
>            Reporter: Eric Pai
>            Assignee: Eric Pai
>            Priority: Major
>              Labels: features
>             Fix For: master branch
>
>
> Currently we have already support udf nested query , i.e. f(g(a)). But we can't query like this
>  * select sum(s1) + sum(s2), -sum(s3), sum(s4) + 1, sin(cos(sum(s5))) from root.sg.d1
>  * select sum(s1) + sum(s2), -sum(s3), sum(s4) + 1, sin(cos(sum(s5))) from root.sg.* GROUP BY LEVEL=1
>  * select sum(s1) + sum(s2), -sum(s3), sum(s4) + 1, sin(cos(sum(s5))) from root.sg.d1 GROUP BY([0, 9000), 1s);
>  * select sum(s1) + sum(s2), -sum(s3), sum(s4) + 1, sin(cos(sum(s5))) from root.sg.d1 GROUP BY([0, 9000), 1s) FILL(previous);
> This task's object is to implement the above quries with reusing existing calculation logics.



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