hequn8128 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_r272878771
 
 

 ##########
 File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/Table.java
 ##########
 @@ -1021,4 +1021,31 @@
         * </pre>
         */
        Table map(Expression mapFunction);
+
+       /**
+        * Performs a flatMap operation with a table function.
+        *
+        * <p>Example:
+        *
+        * <pre>
+        * {@code TableFunction func = new MyFlatMapFunction();
+        *   tableEnv.registerFunction("func", func);
+        *   table.flatMap("func(c)");
+        * }
+        * </pre>
+        */
+       Table flatMap(String tableFunction);
+
+       /**
+        * Performs a flatMap operation with an user-defined table function.
 
 Review comment:
   I think we can drop the `user-defined`. I the long term, we will have 
built-in table function and it can also be used in `flatMap`. What do you think?

----------------------------------------------------------------
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