maryannxue commented on a change in pull request #29134:
URL: https://github.com/apache/spark/pull/29134#discussion_r456198713



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
##########
@@ -37,16 +37,30 @@ import org.apache.spark.sql.execution._
 import org.apache.spark.sql.execution.metric.{SQLMetric, SQLMetrics, 
SQLShuffleReadMetricsReporter, SQLShuffleWriteMetricsReporter}
 import org.apache.spark.sql.internal.SQLConf
 import org.apache.spark.sql.types.StructType
+import org.apache.spark.sql.vectorized.ColumnarBatch
 import org.apache.spark.util.MutablePair
 import org.apache.spark.util.collection.unsafe.sort.{PrefixComparators, 
RecordComparator}
 
+/**
+ * Base class for implementations of shuffle exchanges. This was added to 
enable plugins to
+ * provide columnar implementations of shuffle exchanges when Adaptive Query 
Execution is
+ * enabled.
+ */
+abstract class ShuffleExchange extends Exchange {
+  def shuffleId: Int

Review comment:
       This is available in `mapOutputStats`




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to