Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37584

New SQL function: map_contains_key

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      Add a new function map_contains_key, which returns true if the map contains the key

      Examples:
      > SELECT map_contains_key(map(1, 'a', 2, 'b'), 1);
      true
      > SELECT map_contains_key(map(1, 'a', 2, 'b'), 3);
      false

      Attachments

        Activity

          People

            apachespark Apache Spark
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: