Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5772

Add MAP_CONCAT, MAP_FROM_ENTRIES for Spark dialect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 1.35.0
    • 1.35.0
    • core

    Description

      map_concat

      map_concat(map, ...) - Returns the union of all the given maps

      Examples:

       

      > SELECT map_concat(map(1, 'a', 2, 'b'), map(3, 'c'));
       {1:"a",2:"b",3:"c"} 

       

       

      map_from_entries

      map_from_entries(arrayOfEntries) - Returns a map created from the given array of entries.

      Examples:

       

      > SELECT map_from_entries(array(struct(1, 'a'), struct(2, 'b')));
       {1:"a",2:"b"} 

       

       

      Attachments

        Issue Links

          Activity

            People

              jackylau Jacky Lau
              jackylau Jacky Lau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: