peter-toth commented on code in PR #53859:
URL: https://github.com/apache/spark/pull/53859#discussion_r2740844979
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala:
##########
@@ -622,6 +623,11 @@ object QueryExecution {
sparkSession: SparkSession,
adaptiveExecutionRule: Option[InsertAdaptiveSparkPlan] = None,
subquery: Boolean): Seq[Rule[SparkPlan]] = {
+ val requiredDistribution = if (subquery) {
Review Comment:
Fixed in
https://github.com/apache/spark/pull/53859/commits/b04bb614cd5b5d56b40855c509ef770949b0eaa1.
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/EnsureRequirements.scala:
##########
@@ -224,8 +227,11 @@ case class EnsureRequirements(
child match {
case ShuffleExchangeExec(_, c, so, ps) =>
- ShuffleExchangeExec(newPartitioning, c, so, ps)
- case _ => ShuffleExchangeExec(newPartitioning, child)
+ val newChild = disableKeyGroupingIfNotNeeded(c)
+ ShuffleExchangeExec(newPartitioning, newChild, so, ps)
+ case _ =>
+ val newChild = disableKeyGroupingIfNotNeeded(child)
Review Comment:
Done in
https://github.com/apache/spark/pull/53859/commits/b04bb614cd5b5d56b40855c509ef770949b0eaa1.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]