Skip to content

Commit 34e3d38

Browse files
committed
Minor nit
1 parent 978bad9 commit 34e3d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class SimplifyConditionalSuite extends PlanTest with ExpressionEvalHelper with P
172172
assertEquivalent(If(p, nullLiteral, FalseLiteral), And(p, nullLiteral))
173173
assertEquivalent(If(p, nullLiteral, TrueLiteral), Or(IsNotNull('a), nullLiteral))
174174
assertEquivalent(If(p, FalseLiteral, nullLiteral), And(IsNotNull('a), nullLiteral))
175-
assertEquivalent(If(p, TrueLiteral, nullLiteral), Or(IsNull('a), nullLiteral))
175+
assertEquivalent(If(p, TrueLiteral, nullLiteral), Or(p, nullLiteral))
176176

177177
// the rule should not apply to nullable predicate
178178
Seq(TrueLiteral, FalseLiteral).foreach { b =>

0 commit comments

Comments
 (0)