Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21754#discussion_r207189437
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ExchangeCoordinator.scala
 ---
    @@ -117,10 +118,6 @@ class ExchangeCoordinator(
        */
       def estimatePartitionStartIndices(
           mapOutputStatistics: Array[MapOutputStatistics]): Array[Int] = {
    -    // If we have mapOutputStatistics.length < numExchange, it is because 
we do not submit
    -    // a stage when the number of partitions of this dependency is 0.
    -    assert(mapOutputStatistics.length <= numExchanges)
    --- End diff --
    
    why move this check?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to