[ https://issues.apache.org/jira/browse/CALCITE-5918 ]


    Ran Tao deleted comment on CALCITE-5918:
    ----------------------------------

was (Author: lemonjing):
Remind: The map function of spark is different from calcite in two points. The 
first point is that spark uses map(...), and the second point is that empty map 
is allowed in spark, such as 'map()', however it will cause exception in 
calcite.

> Add MAP function (enabled in Spark library)
> -------------------------------------------
>
>                 Key: CALCITE-5918
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5918
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: Guillaume Massé
>            Priority: Minor
>
> Apache Spark map constructor is different than the standard SQL:
> [https://spark.apache.org/docs/3.4.0/api/sql/index.html#map]
>  
> {code:java}
> SELECT map(1.0, '2', 3.0, '4');
> // {1.0:"2",3.0:"4"} {code}
>  
> related PR that can help implement this: 
> https://github.com/apache/calcite/pull/3141



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to