xy2953396112 commented on issue #1480: [CALCITE-3380] implement power method in Expressions. URL: https://github.com/apache/calcite/pull/1480#issuecomment-542937445 > I don't think we need this 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 `Expressions.power(a, b)` use `Expressions.call(null, Math.class.getMethod("power"), a, b)`. Then I think the evaluate will be able to evaluate it without any extra work. It is more convenient for users to use `Expressions.power(a, b)`。
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
