You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "jackylau (Jira)" <ji...@apache.org> on 2023/02/23 11:28:00 UTC
[jira] [Created] (FLINK-31199) Add MAP_KEYS supported in SQL & Table API
jackylau created FLINK-31199:
--------------------------------
Summary: 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
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)