Github user ptkool commented on a diff in the pull request:
https://github.com/apache/spark/pull/17650#discussion_r111733014
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/BooleanSimplificationSuite.scala
---
@@ -160,4 +166,12 @@ class BooleanSimplificationSuite extends PlanTest with
PredicateHelper {
testRelation.where('a > 2 || ('b > 3 && 'b < 5)))
comparePlans(actual, expected)
}
+
+ test("Complementation Laws") {
+ checkCondition('a && !'a, LocalRelation(testRelation.output,
Seq.empty))
--- End diff --
Yes, but I wanted to make sure it was clear that the resulting plan node
was a LocalRelation node that produced no data.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]