[
https://issues.apache.org/jira/browse/CALCITE-5695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17723264#comment-17723264
]
Julian Hyde commented on CALCITE-5695:
--------------------------------------
I see. Maybe change {quote}Returns an unordered array containing the keys of
the map. If the map itself is null, the function will return null.{quote} to
{quote}Returns the key values of the map as an array; the order of the entries
is not defined{quote}. There's no need to state that null input results in null
output; that is assumed for all functions.
> Add MAP_KEYS and MAP_VALUES for Spark dialect
> ---------------------------------------------
>
> Key: CALCITE-5695
> URL: https://issues.apache.org/jira/browse/CALCITE-5695
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.35.0
> Reporter: jackylau
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.35.0
>
>
> {{MAP_KEYS}} - Returns an unordered array containing the keys of the map. If
> the map itself is null, the function will return null.
> {{MAP_VALUES}} - Returns an unordered array containing the values of the map.
> If the map itself is null, the function will return null.
> For more details
> [https://spark.apache.org/docs/latest/sql-ref-functions-builtin.html]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)