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

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_r140163581
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/TableSqlFunction.scala
 ---
    @@ -40,17 +40,14 @@ class TableSqlFunction(
         name: String,
         udtf: TableFunction[_],
         rowTypeInfo: TypeInformation[_],
    -    returnTypeInference: SqlReturnTypeInference,
    -    operandTypeInference: SqlOperandTypeInference,
    -    operandTypeChecker: SqlOperandTypeChecker,
    -    paramTypes: util.List[RelDataType],
    +    typeFactory: FlinkTypeFactory,
         functionImpl: FlinkTableFunctionImpl[_])
       extends SqlUserDefinedTableFunction(
         new SqlIdentifier(name, SqlParserPos.ZERO),
    -    returnTypeInference,
    -    operandTypeInference,
    -    operandTypeChecker,
    -    paramTypes,
    +    ReturnTypes.CURSOR,
    +    createOperandTypeInference(name, udtf, typeFactory),
    +    createOperandTypeChecker(name, udtf),
    +    null,
    --- End diff --
    
    I think it is fine. `ScalarSqlFunction` and `AggregateSqlFunction` also 
pass `null` and works good. 


> 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