Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23899 Built-in SQL Function Improvement
  3. SPARK-23933

High-order function: map(array<K>, array<V>) → map<K,V>

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • SQL
    • None

    Description

      Ref: https://prestodb.io/docs/current/functions/map.html

      Returns a map created using the given key/value arrays.

      SELECT map(ARRAY[1,3], ARRAY[2,4]); -- {1 -> 2, 3 -> 4}
      

      Attachments

        Activity

          People

            kiszk Kazuaki Ishizaki
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: