cloud-fan commented on a change in pull request #33541:
URL: https://github.com/apache/spark/pull/33541#discussion_r679640303
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AQEShuffleReadExec.scala
##########
@@ -112,6 +128,16 @@ case class AQEShuffleReadExec private(
partitionSpecs.exists(_.isInstanceOf[PartialMapperPartitionSpec]) ||
partitionSpecs.exists(_.isInstanceOf[CoalescedMapperPartitionSpec])
+ def isCoalescedRead: Boolean = {
+ partitionSpecs.sliding(2).forall {
+ // A single partition spec which is `CoalescedPartitionSpec` also means
coalesced read.
+ case Seq(_: CoalescedPartitionSpec) => true
+ case Seq(l: CoalescedPartitionSpec, r: CoalescedPartitionSpec) =>
+ l.endReducerIndex <= r.startReducerIndex
Review comment:
what do you mean? coalesced partition can be in any position
--
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]