peter-toth commented on a change in pull request #24495: [SPARK-27604][SQL] Add
filter reduction
URL: https://github.com/apache/spark/pull/24495#discussion_r282225784
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/QueryPlanConstraints.scala
##########
@@ -122,4 +122,193 @@ trait ConstraintHelper {
case _: NullIntolerant =>
expr.children.flatMap(scanNullIntolerantAttribute)
case _ => Seq.empty[Attribute]
}
+
+ def normalizeAndReduceWithConstraints(expression: Expression): Expression =
Review comment:
I've moved all new filter reduction related logic to `FilterReduction`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]