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

ARRAY equality is broken in Spark 2.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1
    • Fix Version/s: 2.0.3, 2.1.0
    • Component/s: SQL
    • Labels:
    • Target Version/s:

      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: