Skip to content

Commit

Permalink
fix failed ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcclp committed Dec 6, 2023
1 parent 6201408 commit d78daf4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class GlutenAdaptiveQueryExecSuite extends AdaptiveQueryExecSuite with GlutenSQL
withSQLConf(
SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true",
// magic threshold, ch backend has two bhj when threshold is 100
SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "90",
SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "100",
SQLConf.SHUFFLE_PARTITIONS.key -> "5"
) {
val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
Expand All @@ -447,9 +447,9 @@ class GlutenAdaptiveQueryExecSuite extends AdaptiveQueryExecSuite with GlutenSQL
assert(sortMergeJoinSize(plan) == 3)
// TODO: vanilla spark has 2 bhj, and 1 smj, but gluten has 3 bhj,
// make sure this will not cause performance regression and why it is bhj
assert(broadcastHashJoinSize(adaptivePlan) == 1)
assert(broadcastHashJoinSize(adaptivePlan) == 2)
// Vanilla spark still a SMJ, and its two shuffles can't apply local read.
checkNumLocalShuffleReads(adaptivePlan, 4)
checkNumLocalShuffleReads(adaptivePlan, 2)
// Even with local shuffle read, the query stage reuse can also work.
val ex = findReusedExchange(adaptivePlan)
assert(ex.size == 1)
Expand Down

0 comments on commit d78daf4

Please sign in to comment.