[ 
https://issues.apache.org/jira/browse/CALCITE-5739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jackylau updated CALCITE-5739:
------------------------------
    Description: 
MAP_FROM_ARRAYS (array1, array2)
 * Returns a map created from an *array1* and *array2. Note that the lengths of 
two arrays should be the same

{code:java}
// code placeholder
> SELECT map_from_arrays(array(1.0, 3.0), array('2', '4'));
 {1.0:"2",3.0:"4"} {code}

  was:MAP_VALUES(array1, array2) | Returns a map created from an *array1* and 
*array2. Note that the lengths of two arrays should be the same


> Add MAP_FROM_ARRAYS for Spark dialect
> -------------------------------------
>
>                 Key: CALCITE-5739
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5739
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: jackylau
>            Priority: Major
>             Fix For: 1.35.0
>
>
> MAP_FROM_ARRAYS (array1, array2)
>  * Returns a map created from an *array1* and *array2. Note that the lengths 
> of two arrays should be the same
> {code:java}
> // code placeholder
> > SELECT map_from_arrays(array(1.0, 3.0), array('2', '4'));
>  {1.0:"2",3.0:"4"} {code}



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

Reply via email to