Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/3623#discussion_r109933183 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/UserDefinedFunctionUtils.scala --- @@ -209,22 +216,23 @@ object UserDefinedFunctionUtils { * * @param name function name * @param tableFunction table function - * @param resultType the type information of returned table + * @param implicitResultType the implicit type information of returned table * @param typeFactory type factory * @return the TableSqlFunction */ def createTableSqlFunctions( name: String, tableFunction: TableFunction[_], - resultType: TypeInformation[_], + implicitResultType: TypeInformation[_], typeFactory: FlinkTypeFactory) : Seq[SqlFunction] = { - val (fieldNames, fieldIndexes, _) = UserDefinedFunctionUtils.getFieldInfo(resultType) val evalMethods = checkAndExtractEvalMethods(tableFunction) evalMethods.map { method => - val function = new FlinkTableFunctionImpl(resultType, fieldIndexes, fieldNames, method) - TableSqlFunction(name, tableFunction, resultType, typeFactory, function) + // we don't know the exact result type yet. + val function = new DeferredTypeFlinkTableFunction( + tableFunction, method, implicitResultType) --- End diff -- parameters fit in line above
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---