[
https://issues.apache.org/jira/browse/FLINK-31199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17692634#comment-17692634
]
Sergey Nuyanzin commented on FLINK-31199:
-----------------------------------------
There is an existing PR for that https://github.com/apache/flink/pull/15797
> Add MAP_KEYS supported in SQL & Table API
> -----------------------------------------
>
> Key: FLINK-31199
> URL: https://issues.apache.org/jira/browse/FLINK-31199
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.18.0
> Reporter: jackylau
> Priority: Major
> Fix For: 1.18.0
>
>
> Returns an unordered array containing the keys of the map.
> Syntax:
> map_keys(map)
> Arguments:
> map An Map to be handled.
> Returns:
> An Map. If value is NULL, the result is NULL.
> Examples:
> {code:sql}
> > SELECT map_keys(map(1, 'a', 2, 'b'));
> [1,2] {code}
> See also
> spark https://spark.apache.org/docs/latest/api/sql/index.html#map_keys
>
> h4.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)