twalthr commented on a change in pull request #11280: [FLINK-16377][table] 
Support inline user defined functions in expression dsl
URL: https://github.com/apache/flink/pull/11280#discussion_r397251630
 
 

 ##########
 File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java
 ##########
 @@ -471,9 +471,14 @@ public QueryOperation flatMap(Expression tableFunction, 
QueryOperation child) {
                        throw new ValidationException("Only a table function 
can be used in the flatMap operator.");
                }
 
-               TypeInformation<?> resultType = ((TableFunctionDefinition) 
((UnresolvedCallExpression) resolvedTableFunction)
-                       .getFunctionDefinition())
-                       .getResultType();
+               FunctionDefinition functionDefinition = 
((UnresolvedCallExpression) resolvedTableFunction)
+                       .getFunctionDefinition();
+               if (!(functionDefinition instanceof TableFunctionDefinition)) {
 
 Review comment:
   please add a follow-up issue in FLINK-13191

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to