Skip to content

Commit

Permalink
Kyligence#217 fix AE remove root ShuffleExchangeExec which generated …
Browse files Browse the repository at this point in the history
…by RepartitionByExpression
  • Loading branch information
7mming7 committed Feb 25, 2021
1 parent 95bcaaf commit 27b1f32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ case class EnsureRequirements(conf: SQLConf) extends Rule[SparkPlan] {

def apply(plan: SparkPlan): SparkPlan = plan.transformUp {
// TODO: remove this after we create a physical operator for `RepartitionByExpression`.
case operator @ ShuffleExchangeExec(upper: HashPartitioning, child, _, _) =>
case operator @ ShuffleExchangeExec(upper: HashPartitioning, child, _, Some(false)) =>
child.outputPartitioning match {
case lower: HashPartitioning if upper.semanticEquals(lower) => child
case _ => operator
Expand Down

0 comments on commit 27b1f32

Please sign in to comment.