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

ASF GitHub Bot commented on FLINK-3574:
---------------------------------------

Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1775#discussion_r55497175
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/expressions/call.scala
 ---
    @@ -61,3 +70,11 @@ object BuiltInFunctionConstants {
       val TRIM_TRAILING = Literal(2)
       val TRIM_DEFAULT_CHAR = Literal(" ")
     }
    +
    +object BuiltInMethods {
    +  val LOG10 = Types.lookupMethod(classOf[Math], "log10", classOf[Double])
    +  val EXP = Types.lookupMethod(classOf[Math], "exp", classOf[Double])
    +  val POWER = Types.lookupMethod(classOf[Math], "pow", classOf[Double], 
classOf[Double])
    +  val LN = Types.lookupMethod(classOf[Math], "log", classOf[Double])
    +  val ABS = Types.lookupMethod(classOf[SqlFunctions], "abs", 
classOf[Double])
    +}
    --- End diff --
    
    this file causes a scalastyle violation on travis:
    
    ```
    error 
file=/home/travis/build/apache/flink/flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/expressions/call.scala
 message=File must end with newline character
    ```


> Implement math functions for Table API
> --------------------------------------
>
>                 Key: FLINK-3574
>                 URL: https://issues.apache.org/jira/browse/FLINK-3574
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API
>            Reporter: Timo Walther
>            Assignee: Dawid Wysakowicz
>
> {code}
> MOD
> EXP
> POWER
> LN
> LOG10
> ABS
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to