You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "jackylau (Jira)" <ji...@apache.org> on 2023/06/13 05:20:00 UTC

[jira] (CALCITE-5772) Add MAP_CONCAT, MAP_FROM_ENTRIES for Spark dialect

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


    jackylau deleted comment on CALCITE-5772:
    -----------------------------------

was (Author: jackylau):
hi [~julianhyde] would you have time to review this again, i have several pr which do not submit, i worried conflict with this 2 pr.

[https://github.com/apache/calcite/pull/3238|https://github.com/apache/calcite/pull/3238#event-9469857630]

https://github.com/apache/calcite/pull/3207

> Add MAP_CONCAT, MAP_FROM_ENTRIES  for Spark dialect
> ---------------------------------------------------
>
>                 Key: CALCITE-5772
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5772
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: jackylau
>            Assignee: jackylau
>            Priority: Major
>             Fix For: 1.35.0
>
>
> h3. [map_concat|https://spark.apache.org/docs/latest/api/sql/index.html#map_concat]
> map_concat(map, ...) - Returns the union of all the given maps
> *Examples:*
>  
> {code:java}
> > SELECT map_concat(map(1, 'a', 2, 'b'), map(3, 'c'));
>  {1:"a",2:"b",3:"c"} {code}
>  
>  
> h3. [map_from_entries|https://spark.apache.org/docs/latest/api/sql/index.html#map_from_entries]
> map_from_entries(arrayOfEntries) - Returns a map created from the given array of entries.
> *Examples:*
>  
> {code:java}
> > SELECT map_from_entries(array(struct(1, 'a'), struct(2, 'b')));
>  {1:"a",2:"b"} {code}
>  
>  



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