Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31677

Add MAP_ENTRIES supported in SQL & Table API

    XMLWordPrintableJSON

Details

    Description

      map_entries(map) - Returns an unordered array of all entries in the given map.

      Syntax:
      map_entries(map)

      Arguments:
      map: An MAP to be handled.

      Returns:

      Returns an unordered array of all entries in the given map.

      Returns null if the argument is null

      
      > SELECT map_entries(map[1, 'a', 2, 'b']);
       [(1,"a"),(2,"b")]

      See also
      presto https://prestodb.io/docs/current/functions/map.html

      spark https://spark.apache.org/docs/latest/api/sql/index.html#map_entries

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: