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

ASF subversion and git services commented on IMPALA-13481:
----------------------------------------------------------

Commit 98b584a45f95380a30cddc1736973d91ba29542f in impala's branch 
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=98b584a45 ]

IMPALA-13481: Add support for various agg and analytic functions

Various functions were added.  There were several issues for
these functions:

1) The Calcite parser and/or validator was generating SqlNodes
that weren't compatible with Impala. To fix this, the parsing
had to be removed from the Parser.jj file and the functions were
marked to use the ImpalaOperator rather than the Calcite operator.
These functions include:

trim, extract, regr*, regexp*, localtime, group_concat

2) The ntile, cume_dist, and percent_rank functions undergo a
transformation in AnalyticExpr. To make this more clean for Calcite,
the transformation now happens in the RewriteRexOverRule.

3) The "negative" operator had to be added to the custom operator table.
The subtract was already added there, and all "-" operators need
to be in the same table.

4) Various functions were added to function resolver where the Calcite
function name was different from the Impala function name.

Also added the test mentioned in IMPALA-13688 for cume_dist with
duplicates.

Change-Id: I57c69a60c63872b2964688f395b662a85698555e
Reviewed-on: http://gerrit.cloudera.org:8080/21976
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Calcite planner: Add support for various analytic and agg functions
> -------------------------------------------------------------------
>
>                 Key: IMPALA-13481
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13481
>             Project: IMPALA
>          Issue Type: Sub-task
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to