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

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

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

    https://github.com/apache/flink/pull/4536#discussion_r135430307
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/schema/FlinkTableFunctionImpl.scala
 ---
    @@ -71,6 +69,9 @@ class FlinkTableFunctionImpl[T](
     
       override def getElementType(arguments: util.List[AnyRef]): Type = 
classOf[Array[Object]]
     
    +  // we do never use the FunctionParameters, so return an empty list
    +  override def getParameters: util.List[FunctionParameter] = 
Collections.emptyList()
    --- End diff --
    
    `ReflectiveFunctionBase#getParameters` is used to create 
`SqlOperandTypeChecker` in the previous implementation. But with the new 
implementation, we don't need the `ReflectiveFunctionBase#getParameters` to 
create `SqlOperandTypeChecker`. So I think we can just return an empty list.


> Support variable arguments for UDTF in SQL
> ------------------------------------------
>
>                 Key: FLINK-7439
>                 URL: https://issues.apache.org/jira/browse/FLINK-7439
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>            Reporter: Jark Wu
>            Assignee: Jark Wu
>
> Currently, both UDF and UDAF support variable parameters, but UDTF not. 
> FLINK-5882 supports variable UDTF for Table API only, but missed SQL.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to