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

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

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

    https://github.com/apache/flink/pull/3809#discussion_r114523232
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/UserDefinedFunctionUtils.scala
 ---
    @@ -220,14 +264,34 @@ object UserDefinedFunctionUtils {
           typeFactory: FlinkTypeFactory)
         : Seq[SqlFunction] = {
         val (fieldNames, fieldIndexes, _) = 
UserDefinedFunctionUtils.getFieldInfo(resultType)
    -    val evalMethods = checkAndExtractEvalMethods(tableFunction)
    +    val evalMethods = checkAndExtractMethods(tableFunction, "eval")
     
         evalMethods.map { method =>
           val function = new FlinkTableFunctionImpl(resultType, fieldIndexes, 
fieldNames, method)
           TableSqlFunction(name, tableFunction, resultType, typeFactory, 
function)
         }
       }
     
    +  /**
    +    * Create [[SqlFunction]]s for an [[AggregateFunction]]
    +    *
    +    * @param name function name
    +    * @param aggFunction aggregate function
    +    * @param resultType the type information of returned value
    +    * @param typeFactory type factory
    +    * @return the TableSqlFunction
    +    */
    +  def createAggregateSqlFunctions(
    --- End diff --
    
    -s -> `createAggregateSqlFunction`


> Add support to register UDAGG in Table and SQL API
> --------------------------------------------------
>
>                 Key: FLINK-5906
>                 URL: https://issues.apache.org/jira/browse/FLINK-5906
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>            Reporter: Fabian Hueske
>            Assignee: Shaoxuan Wang
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to