snuyanzin commented on code in PR #22745: URL: https://github.com/apache/flink/pull/22745#discussion_r1251834045
########## flink-python/pyflink/table/expressions.py: ########## @@ -503,6 +503,25 @@ def map_from_arrays(key, value) -> Expression: return _binary_op("mapFromArrays", key, value) +def map_from_entries(rows) -> Expression: + """ + Creates a map from an array of entries (row with two fields). + + Example: + :: + + >>> tab.select( + >>> map_from_entries( + >>> array(row(key1, 1), row(key2, 2), row(key3, 3)) + >>> )) + + .. note:: + + both arrays should have the same length. Review Comment: then why is this sentence talking about `both` arrays? -- 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