Skip to content

Commit

Permalink
KE-37693 user-specified repartition shouldn't be optimized with Coale…
Browse files Browse the repository at this point in the history
…sceShufflePartitions
  • Loading branch information
Yu Gan authored and yugan95 committed Jul 1, 2022
1 parent 2901ec6 commit 00f228b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.spark.sql.execution.adaptive

import org.apache.spark.sql.catalyst.plans.physical.{Distribution, HashClusteredDistribution, HashPartitioning, UnspecifiedDistribution}
import org.apache.spark.sql.execution.{CollectMetricsExec, FilterExec, ProjectExec, SortExec, SparkPlan}
import org.apache.spark.sql.execution.{CollectMetricsExec, DeserializeToObjectExec, FilterExec, ProjectExec, SortExec, SparkPlan}
import org.apache.spark.sql.execution.exchange.{REPARTITION_BY_COL, REPARTITION_BY_NUM, ShuffleExchangeExec}

object AQEUtils {
Expand Down Expand Up @@ -55,6 +55,7 @@ object AQEUtils {
}
case other => Some(other)
}
case d: DeserializeToObjectExec => getRequiredDistribution(d.child)
case _ => Some(UnspecifiedDistribution)
}
}

0 comments on commit 00f228b

Please sign in to comment.