Skip to content

Commit a7a32d2

Browse files
authored
release r46 (apache#154)
1 parent 3068595 commit a7a32d2

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/EnsureRequirements.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ import org.apache.spark.sql.internal.SQLConf
3636
* the input partition ordering requirements are met.
3737
*/
3838
case 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

sql/core/src/test/scala/org/apache/spark/sql/execution/ExchangeCoordinatorSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/QueryStageSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)