We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11beb61 commit a04ffaeCopy full SHA for a04ffae
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
@@ -383,7 +383,7 @@ object BooleanSimplification extends Rule[LogicalPlan] with PredicateHelper {
383
case (Literal(false, BooleanType), r) => r
384
// l || false => l
385
case (l, Literal(false, BooleanType)) => l
386
- // a || b => a
+ // a || a => a
387
case (l, r) if l fastEquals r => l
388
// (a && b) || (a && c) => a && (b || c)
389
case _ =>
0 commit comments