Skip to content

Commit

Permalink
copy when ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Apr 15, 2015
1 parent 7ddd656 commit 5492884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ case class Exchange(
shuffled.map(_._2)

case RangePartitioning(sortingExpressions, numPartitions) =>
val rdd = if (sortBasedShuffleOn) {
val rdd = if (sortBasedShuffleOn || newOrdering.nonEmpty) {
child.execute().mapPartitions { iter => iter.map(row => (row.copy(), null))}
} else {
child.execute().mapPartitions { iter =>
Expand Down

0 comments on commit 5492884

Please sign in to comment.