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 f777855 commit 71b67cbCopy full SHA for 71b67cb
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala
@@ -172,7 +172,9 @@ class EquivalentExpressions {
172
173
/**
174
* Orders [Expression] by parent/child relations. The child expression is smaller
175
- * than parent expression.
+ * than parent expression. If there is child-parent relationships among the subexpressions,
176
+ * we want the child expressions come first than parent expressions, so we can replace
177
+ * child expressions in parent expressions with subexpression evaluation.
178
*/
179
class ExpressionOrdering extends Ordering[Expression] {
180
override def compare(x: Expression, y: Expression): Int = {
0 commit comments