This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 02a055a [SPARK-38754][SQL][TEST][3.1] Using EquivalentExpressions
getEquivalentExprs function instead of getExprState at
SubexpressionEliminationSuite
02a055a is described below
commit 02a055a42de5597cd42c1c0d4470f0e769571dc3
Author: Dereck Li <[email protected]>
AuthorDate: Fri Apr 1 22:54:11 2022 +0800
[SPARK-38754][SQL][TEST][3.1] Using EquivalentExpressions
getEquivalentExprs function instead of getExprState at
SubexpressionEliminationSuite
### What changes were proposed in this pull request?
This pr use EquivalentExpressions getEquivalentExprs function instead of
getExprState at SubexpressionEliminationSuite, and remove cpus paramter.
### Why are the changes needed?
Fixes build error
### Does this PR introduce _any_ user-facing change?
NO
### How was this patch tested?
CI Tests
Closes #36033 from monkeyboy123/SPARK-38754.
Authored-by: Dereck Li <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit f677272d08de030ff9c4045ceec062168105b75c)
Signed-off-by: Wenchen Fan <[email protected]>
---
.../spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala
b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala
index b414019..72b39bb 100644
---
a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala
+++
b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala
@@ -401,7 +401,7 @@ class SubexpressionEliminationSuite extends SparkFunSuite
with ExpressionEvalHel
val equivalence = new EquivalentExpressions
val expression = DynamicPruningExpression(Exists(LocalRelation()))
equivalence.addExprTree(expression)
- assert(equivalence.getExprState(expression).isEmpty)
+ assert(equivalence.getEquivalentExprs(expression).size == 0)
} finally {
TaskContext.unset()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]