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

ARRAY equality is broken in Spark 2.0

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.0.1
    • 2.0.3, 2.1.0
    • SQL

    Description

      The following Spark shell reproduces this issue:

      case class Test(a: Seq[Int])
      Seq(Test(Seq(1))).toDF().createOrReplaceTempView("t")
      
      sql("SELECT a FROM t WHERE a = array(1)").show()
      // +---+
      // |  a|
      // +---+
      // +---+
      
      sql("SELECT a FROM (SELECT array(1) AS a) x WHERE x.a = array(1)").show()
      // +---+
      // |  a|
      // +---+
      // |[1]|
      // +---+
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cloud_fan Wenchen Fan
            lian cheng Cheng Lian
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment