ulysses-you commented on a change in pull request #32816: URL: https://github.com/apache/spark/pull/32816#discussion_r700751867
########## File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AQEUtils.scala ########## @@ -57,4 +58,22 @@ object AQEUtils { } case _ => Some(UnspecifiedDistribution) } + + // Add an extra shuffle if input plan does not satisfy the required distribution. + // This method is invoked after optimizing skewed join in case we change final stage + // output partitioning. + def ensureRequiredDistribution( Review comment: good point, merged this code into `EnsureRequirements` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org