Skip to content

Commit

Permalink
change new test a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Nov 10, 2019
1 parent 2661c3d commit 1634003
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ class SubquerySuite extends QueryTest with SharedSparkSession {
"""
SELECT
(SELECT min(a.key) FROM testData AS a JOIN testData AS b ON b.key = a.key),
(SELECT max(a.key) FROM testData AS a JOIN testData AS b ON b.key = a.key)
(SELECT max(a.key) FROM testData AS a JOIN testData2 AS b ON b.a = a.key)
""".stripMargin)

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

if (reuse) {
assert(exchangeIds2.size == 3, "Exchange reusing not working correctly")
assert(reusedExchangeIds2.size == 3, "Exchange reusing not working correctly")
assert(exchangeIds2.size == 4, "Exchange reusing not working correctly")
assert(reusedExchangeIds2.size == 2, "Exchange reusing not working correctly")
assert(reusedExchangeIds2.forall(exchangeIds2.contains(_)),
"ReusedExchangeExec should reuse an existing exchange")
} else {
Expand Down

0 comments on commit 1634003

Please sign in to comment.