Skip to content

Commit 1256c87

Browse files
committed
[SPARK-28699][Core] Disable using radix sort for ShuffleExchangeExec in repartition case
1 parent a5df5ff commit 1256c87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ object ShuffleExchangeExec {
242242
}
243243
// The comparator for comparing row hashcode, which should always be Integer.
244244
val prefixComparator = PrefixComparators.LONG
245-
val canUseRadixSort = SQLConf.get.enableRadixSort
245+
246246
// The prefix computer generates row hashcode as the prefix, so we may decrease the
247247
// probability that the prefixes are equal when input rows choose column values from a
248248
// limited range.
@@ -264,7 +264,7 @@ object ShuffleExchangeExec {
264264
prefixComparator,
265265
prefixComputer,
266266
pageSize,
267-
canUseRadixSort)
267+
false /* canUseRadixSort */)
268268
sorter.sort(iter.asInstanceOf[Iterator[UnsafeRow]])
269269
}
270270
} else {

0 commit comments

Comments
 (0)