Skip to content

Commit 8ccc3c1

Browse files
committed
fix
1 parent d5135ec commit 8ccc3c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ object SimplifyConditionals extends Rule[LogicalPlan] with PredicateHelper {
534534
object PushFoldableIntoBranches extends Rule[LogicalPlan] with PredicateHelper {
535535
def apply(plan: LogicalPlan): LogicalPlan = plan transform {
536536
case q: LogicalPlan => q transformExpressionsUp {
537-
case b @ BinaryComparison(i @ If(_, trueValue, falseValue), right)
538-
if i.deterministic && trueValue.foldable && falseValue.foldable && right.foldable =>
537+
case b @ BinaryComparison(i @ If(_, trueValue, falseValue), right) if i.deterministic &&
538+
right.foldable && trueValue.foldable && falseValue.foldable =>
539539
i.copy(
540540
trueValue = b.makeCopy(Array(trueValue, right)),
541541
falseValue = b.makeCopy(Array(falseValue, right)))

0 commit comments

Comments
 (0)