We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ddd656 commit 5492884Copy full SHA for 5492884
sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala
@@ -110,7 +110,7 @@ case class Exchange(
110
shuffled.map(_._2)
111
112
case RangePartitioning(sortingExpressions, numPartitions) =>
113
- val rdd = if (sortBasedShuffleOn) {
+ val rdd = if (sortBasedShuffleOn || newOrdering.nonEmpty) {
114
child.execute().mapPartitions { iter => iter.map(row => (row.copy(), null))}
115
} else {
116
child.execute().mapPartitions { iter =>
0 commit comments