Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0, 2.0.1
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]| // +---+