flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] sunjincheng121 commented on a change in pull request #7196: [FLINK-10974] [table] Add support for flatMap to table API
Date Fri, 19 Apr 2019 07:47:16 GMT
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_r276914756
 
 

 ##########
 File path: flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/Table.java
 ##########
 @@ -1019,10 +1020,40 @@
 	 * <p>Scala Example:
 	 *
 	 * <pre>
-	 * {@code val func = new MyMapFunction()
+	 * {@code
+	 *   val func = new MyMapFunction()
 	 *   tab.map(func('c))
 	 * }
 	 * </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 a table function.
 
 Review comment:
   Performs a flatMap operation with an user-defined table function or built-in table function.
The output will be flattened if the output type is a composite type. ?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message