Skip to content

Commit 1498b09

Browse files
committed
fix
1 parent 18ac8fb commit 1498b09

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ object PushPredicateThroughNonJoin extends Rule[LogicalPlan] with PredicateHelpe
17861786
// attributes produced by the aggregate operator's child operator.
17871787
val (pushDown, stayUp) = splitConjunctivePredicates(condition).partition { cond =>
17881788
val replaced = replaceAlias(cond, aliasMap)
1789-
cond.deterministic && !cond.throwable && canCollapseExpression(cond, aliasMap)
1789+
cond.deterministic && !cond.throwable && canCollapseExpression(cond, aliasMap) &&
17901790
cond.references.nonEmpty && replaced.references.subsetOf(aggregate.child.outputSet)
17911791
}
17921792

0 commit comments

Comments
 (0)