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

remove duplicated map keys with last wins policy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      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

              • Assignee:
                cloud_fan Wenchen Fan
                Reporter:
                cloud_fan Wenchen Fan
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: