kazuyukitanimura commented on a change in pull request #33930:
URL: https://github.com/apache/spark/pull/33930#discussion_r707843248
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/BooleanSimplificationSuite.scala
##########
@@ -330,4 +330,118 @@ class BooleanSimplificationSuite extends PlanTest with
ExpressionEvalHelper with
checkEvaluation(originalExpr, optimizedVal, inputRow)
}
}
+
+ test("SPARK-36665: Add more Not operator simplifications") {
+ // Using IsNull(e(inputs)) == IsNull(input1) or IsNull(input2) ... rules
+ checkCondition(IsNull(Not('e)), IsNull('e))
+ checkCondition(IsNotNull(Not('e)), IsNotNull('e))
+
Review comment:
Ah, the comment is obsolete. Based on earlier reviews, we are not
restricting that rules for UnaryExpression that does not create `Or`. I will
update it. Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]