From d6bba37147fef5088513542098d14a8650d7339b Mon Sep 17 00:00:00 2001 From: Davies Liu Date: Thu, 19 Jan 2017 10:23:50 -0800 Subject: [PATCH] bug fix --- .../org/apache/spark/sql/catalyst/expressions/predicates.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala index 1c18f4457f52c..ac56ff13fa5bf 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala @@ -93,6 +93,7 @@ trait PredicateHelper { case e: SubqueryExpression => // non-correlated subquery will be replaced as literal e.children.isEmpty + case a: AttributeReference => true case e: Unevaluable => false case e => e.children.forall(canEvaluateWithinJoin) }