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

    https://github.com/apache/spark/pull/6773#discussion_r32288604
  
    --- 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 --
    
    See comment in PR description; even if an ordering was defined I don't 
think it would be used to sort on the map side because we don't do map side 
sort in shuffle unless we specify an aggregator 


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