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

    https://github.com/apache/spark/pull/6773#discussion_r32287870
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala ---
    @@ -91,11 +91,7 @@ case class Exchange(
           shuffleManager.isInstanceOf[UnsafeShuffleManager]
         val bypassMergeThreshold = 
conf.getInt("spark.shuffle.sort.bypassMergeThreshold", 200)
         val serializeMapOutputs = 
conf.getBoolean("spark.shuffle.sort.serializeMapOutputs", true)
    -    if (newOrdering.nonEmpty) {
    -      // If a new ordering is required, then records will be sorted with 
Spark's `ExternalSorter`,
    -      // which requires a defensive copy.
    -      true
    -    } else if (sortBasedShuffleOn) {
    --- End diff --
    
    Just try to understand the context. Is this `if (newOrdering.nonEmpty)` 
part not necessary because of our recent change?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to