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

Julian Hyde commented on CALCITE-3380:
--------------------------------------

I don't think we need to implement the {{Expressions.power}} method. linq4j is 
tied to the java language. There is no power operator in java, therefore people 
should not be using the {{Expressions.power}} function, but instead make a 
method call.

Rather than {code}Expressions.power(a, b){code} use 
{code}Expressions.call(null, Math.class.getMethod("power"), a, b){code} Then I 
think the evaluator will be able to evaluate it without any extra work.  

> implement power method in Expressions.
> --------------------------------------
>
>                 Key: CALCITE-3380
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3380
>             Project: Calcite
>          Issue Type: Wish
>            Reporter: xzh_dz
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> implement power method in Expressions.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to