zml1206 commented on code in PR #49202:
URL: https://github.com/apache/spark/pull/49202#discussion_r1893542664
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/With.scala:
##########
@@ -112,6 +112,22 @@ object With {
With(replaced(commonExprRefs), commonExprDefs)
}
+ /**
+ * Helper function to create a [[With]] statement when push down filter.
+ * @param expr original expression
+ * @param replaceMap Replaced attributes and common expressions
+ */
+ def apply(expr: Expression, replaceMap: Map[Attribute, Expression]): With = {
Review Comment:
This logic in `PushPredicateThroughNonJoin.rewriteByWith()`.
--
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]