[SPARK-33427][SQL][FOLLOWUP] Prevent test flakyness in SubExprEvaluationRuntimeSuite
### What changes were proposed in this pull request? This followup is to prevent possible test flakyness of `SubExprEvaluationRuntimeSuite`. ### Why are the changes needed? Because HashMap doesn't guarantee the order, in `proxyExpressions` the proxy expression id is not deterministic. So in `SubExprEvaluationRuntimeSuite` we should not test against it. ### Does this PR introduce _any_ user-facing change? No, dev only. ### How was this patch tested? Unit test. Closes #30414 from viirya/SPARK-33427-followup. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Liang-Chi Hsieh <viirya@gmail.com>
This commit is contained in:
parent
4267ca98fa
commit
97d2cee4af
|
@ -84,8 +84,7 @@ class SubExprEvaluationRuntimeSuite extends SparkFunSuite {
|
|||
})
|
||||
// ( (one * two) * (one * two) )
|
||||
assert(proxys.size == 2)
|
||||
val expected = ExpressionProxy(mul2, 0, runtime)
|
||||
assert(proxys.forall(_ == expected))
|
||||
assert(proxys.forall(_.child == mul2))
|
||||
}
|
||||
|
||||
test("ExpressionProxy won't be on non deterministic") {
|
||||
|
|
Loading…
Reference in a new issue