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_r276917451
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/runtime/stream/table/CorrelateITCase.scala
 ##########
 @@ -305,6 +305,36 @@ class CorrelateITCase extends AbstractTestBase {
     )
   }
 
+  @Test
+  def testFlatMap(): Unit = {
+    val env = StreamExecutionEnvironment.getExecutionEnvironment
+    val tEnv = StreamTableEnvironment.create(env)
+    StreamITCase.testResults = mutable.MutableList()
+
+    val func2 = new TableFunc2
+    val ds = testData(env).toTable(tEnv, 'a, 'b, 'c)
+      // test non alias
+      .flatMap(func2('c))
+      .select('f0, 'f1)
+      // test the output field name of flatMap is the same as the field name 
of input table
 
 Review comment:
   ` input table`->`the input table`?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to