Skip to content

Commit 1634003

Browse files
committed
change new test a bit
1 parent 2661c3d commit 1634003

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ class SubquerySuite extends QueryTest with SharedSparkSession {
15551555
"""
15561556
SELECT
15571557
(SELECT min(a.key) FROM testData AS a JOIN testData AS b ON b.key = a.key),
1558-
(SELECT max(a.key) FROM testData AS a JOIN testData AS b ON b.key = a.key)
1558+
(SELECT max(a.key) FROM testData AS a JOIN testData2 AS b ON b.a = a.key)
15591559
""".stripMargin)
15601560

15611561
val plan2 = df2.queryExecution.executedPlan
@@ -1566,8 +1566,8 @@ class SubquerySuite extends QueryTest with SharedSparkSession {
15661566
}
15671567

15681568
if (reuse) {
1569-
assert(exchangeIds2.size == 3, "Exchange reusing not working correctly")
1570-
assert(reusedExchangeIds2.size == 3, "Exchange reusing not working correctly")
1569+
assert(exchangeIds2.size == 4, "Exchange reusing not working correctly")
1570+
assert(reusedExchangeIds2.size == 2, "Exchange reusing not working correctly")
15711571
assert(reusedExchangeIds2.forall(exchangeIds2.contains(_)),
15721572
"ReusedExchangeExec should reuse an existing exchange")
15731573
} else {

0 commit comments

Comments
 (0)