Github user maropu commented on a diff in the pull request: https://github.com/apache/spark/pull/21754#discussion_r207207259 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ExchangeCoordinator.scala --- @@ -83,16 +83,17 @@ import org.apache.spark.sql.execution.{ShuffledRowRDD, SparkPlan} * - post-shuffle partition 3: pre-shuffle partition 3 and 4 (size 50 MB) */ class ExchangeCoordinator( - numExchanges: Int, advisoryTargetPostShuffleInputSize: Long, minNumPostShufflePartitions: Option[Int] = None) extends Logging { // The registered Exchange operators. private[this] val exchanges = ArrayBuffer[ShuffleExchangeExec]() + private[this] lazy val numExchanges = exchanges.size --- End diff -- ok, I'll update
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org