Skip to content

Commit

Permalink
only takes effect when aqe is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Oct 31, 2023
1 parent 038b7bb commit 5a2bb6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import org.apache.kyuubi.sql.KyuubiSQLConf.{DYNAMIC_SHUFFLE_PARTITIONS, DYNAMIC_
case class DynamicShufflePartitions(spark: SparkSession) extends Rule[SparkPlan] {

override def apply(plan: SparkPlan): SparkPlan = {
if (!conf.getConf(DYNAMIC_SHUFFLE_PARTITIONS)) {
if (!conf.getConf(DYNAMIC_SHUFFLE_PARTITIONS) || !conf.getConf(ADAPTIVE_EXECUTION_ENABLED)) {
plan
} else {
val maxDynamicShufflePartitions = conf.getConf(DYNAMIC_SHUFFLE_PARTITIONS_MAX_NUM)
Expand Down

0 comments on commit 5a2bb6c

Please sign in to comment.