Github user nongli commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9453#discussion_r43979985
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/ExchangeCoordinator.scala
 ---
    @@ -135,6 +139,11 @@ private[sql] class ExchangeCoordinator(
         // Make sure we do get the same number of pre-shuffle partitions for 
those stages.
         val distinctNumPreShufflePartitions =
           mapOutputStatistics.map(stats => 
stats.bytesByPartitionId.length).distinct
    +    // The reason that we are expecting a single value of the number of 
pre-shuffle partitions
    +    // is that when we add Exchanges, we set the number of pre-shuffle 
partitions
    +    // (i.e. map output partitions) using a static setting, which is the 
value of
    +    // spark.sql.shuffle.partitions. Even two input RDDs are having 
different number of partitions,
    --- End diff --
    
    Nit. Even if two input RDDs have different number of ...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to