mgaido91 commented on a change in pull request #24495: [SPARK-27604][SQL]
Enhance constant propagation to constraint propagation
URL: https://github.com/apache/spark/pull/24495#discussion_r281524048
##########
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:
why do we need to put them here? Can't we have them in the rule using them?
They seems specific to it
----------------------------------------------------------------
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]