sunjincheng121 commented on a change in pull request #7196: [FLINK-10974] 
[table] Add support for flatMap to table API
URL: https://github.com/apache/flink/pull/7196#discussion_r239273803
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/UserDefinedFunctionUtils.scala
 ##########
 @@ -795,7 +795,7 @@ object UserDefinedFunctionUtils {
             "define table function followed by some Alias.")
     }
 
-    val functionCall: LogicalTableFunctionCall = 
unwrap(ExpressionParser.parseExpression(udtf))
+    val functionCall: LogicalTableFunctionCall = unwrap(udtfExpr)
 
 Review comment:
   If we remove `as(Option(Seq[String]))`, we should change the usage looks 
like as follows:
   ```
   
unwrap(udtfExpr).as(alias.getOrElse(Seq()).mkString(",")).toLogicalTableFunctionCall(child
 = null)
   ```

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


With regards,
Apache Git Services

Reply via email to