maryannxue commented on a change in pull request #26813: [SPARK-30188][SQL]
Resolve the failed unit tests when enable AQE
URL: https://github.com/apache/spark/pull/26813#discussion_r371920340
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/InsertAdaptiveSparkPlan.scala
##########
@@ -39,11 +41,26 @@ case class InsertAdaptiveSparkPlan(
private val conf = adaptiveExecutionContext.session.sessionState.conf
+ def containShuffle(plan: SparkPlan): Boolean = {
+ plan.find {
+ case _: Exchange => true
Review comment:
Do you remember which case would fail because of this? We should not see an
Exchange without a logical link in `sparkPlan`, right? If there is one, we need
to find out the reason and fix it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]