File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
main/scala/org/apache/spark/sql/execution/exchange
test/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,7 @@ import org.apache.spark.sql.internal.SQLConf
3636 * the input partition ordering requirements are met.
3737 */
3838case class EnsureRequirements (conf : SQLConf ) extends Rule [SparkPlan ] {
39- private def defaultNumPreShufflePartitions : Int =
40- if (conf.adaptiveExecutionEnabled) {
41- conf.maxNumPostShufflePartitions
42- } else {
43- conf.numShufflePartitions
44- }
39+ private def defaultNumPreShufflePartitions : Int = conf.numShufflePartitions
4540
4641 private def ensureDistributionAndOrdering (operator : SparkPlan ): SparkPlan = {
4742 val requiredChildDistributions : Seq [Distribution ] = operator.requiredChildDistribution
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ class ExchangeCoordinatorSuite extends SparkFunSuite with BeforeAndAfterAll {
390390 .setAppName(" test" )
391391 .set(" spark.ui.enabled" , " true" )
392392 .set(" spark.driver.allowMultipleContexts" , " true" )
393- .set(SQLConf .SHUFFLE_MAX_NUM_POSTSHUFFLE_PARTITIONS .key, " 5" )
393+ .set(SQLConf .SHUFFLE_PARTITIONS .key, " 5" )
394394 .set(SQLConf .ADAPTIVE_EXECUTION_ENABLED .key, " true" )
395395 .set(SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key, " -1" )
396396 .set(
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class QueryStageSuite extends SparkFunSuite with BeforeAndAfterAll {
5151 .appName(" test" )
5252 .config(" spark.ui.enabled" , " true" )
5353 .config(" spark.driver.allowMultipleContexts" , " true" )
54- .config(SQLConf .SHUFFLE_MAX_NUM_POSTSHUFFLE_PARTITIONS .key, " 5" )
54+ .config(SQLConf .SHUFFLE_PARTITIONS .key, " 5" )
5555 .config(config.SHUFFLE_STATISTICS_VERBOSE .key, " true" )
5656 .config(SQLConf .ADAPTIVE_EXECUTION_ENABLED .key, " true" )
5757 .config(SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key, " -1" )
You can’t perform that action at this time.
0 commit comments