viirya commented on a change in pull request #30245:
URL: https://github.com/apache/spark/pull/30245#discussion_r518419317
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala
##########
@@ -96,8 +131,21 @@ class EquivalentExpressions {
case other => other.children
}
- if (!skip && !addExpr(expr)) {
- childrenToRecurse.foreach(addExprTree)
+ // For some special expressions we cannot just recurse into all of its
children, but we can
+ // recursively add the common expressions shared between all of its
children.
+ def commonChildrenToRecurse: Seq[Seq[Expression]] = expr match {
Review comment:
Ok.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]