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

remove duplicated map keys with last wins policy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • SQL
    • None

    Description

      In Spark SQL, we apply "earlier entry wins" semantic to duplicated map keys. e.g.

      scala> sql("SELECT map(1,2,1,3)[1]").show
      +------------------+
      |map(1, 2, 1, 3)[1]|
      +------------------+
      |                 2|
      +------------------+
      

      However, this handling is not applied consistently.

      Attachments

        Issue Links

          Activity

            People

              cloud_fan Wenchen Fan
              cloud_fan Wenchen Fan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: