liuyongvs commented on code in PR #22745:
URL: https://github.com/apache/flink/pull/22745#discussion_r1251435754


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/Expressions.java:
##########
@@ -553,6 +553,23 @@ public static ApiExpression mapFromArrays(Object key, 
Object value) {
                 objectToExpression(value));
     }
 
+    /**
+     * Creates a map from an array of entries (row with two fields).
+     *
+     * <pre>{@code
+     * table.select(
+     *     mapFromEntries(
+     *         array(row(key1, 1), row(key2, 2), row(key3, 3))
+     *     ))
+     * }</pre>
+     *
+     * <p>Note If the number of fields in a row array is not 2 or the key of a 
row array is null, an
+     * error is returned.

Review Comment:
   nit. i fixed @snuyanzin 



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

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to