Skip to content

Commit

Permalink
rss use row-based sort
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma committed Aug 6, 2024
1 parent d746f0f commit 020eaf6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ abstract class CelebornColumnarShuffleWriter[K, V](
protected val shuffleWriterType: String =
celebornConf.shuffleWriterMode.name
.toLowerCase(Locale.ROOT)
.replace(GlutenConfig.GLUTEN_SORT_SHUFFLE_WRITER, GlutenConfig.GLUTEN_RSS_SORT_SHUFFLE_WRITER)

protected val celebornPartitionPusher = new CelebornPartitionPusher(
shuffleId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.apache.spark.shuffle

import org.apache.gluten.GlutenConfig
import org.apache.gluten.GlutenConfig.{GLUTEN_RSS_SORT_SHUFFLE_WRITER, GLUTEN_SORT_SHUFFLE_WRITER}
import org.apache.gluten.exec.Runtimes
import org.apache.gluten.memory.arrow.alloc.ArrowBufferAllocators
import org.apache.gluten.utils.ArrowAbiUtil
Expand Down Expand Up @@ -85,7 +84,6 @@ private class CelebornColumnarBatchSerializerInstance(
val compressionCodecBackend =
GlutenConfig.getConf.columnarShuffleCodecBackend.orNull
val shuffleWriterType = GlutenConfig.getConf.celebornShuffleWriterType
.replace(GLUTEN_SORT_SHUFFLE_WRITER, GLUTEN_RSS_SORT_SHUFFLE_WRITER)
val jniWrapper = ShuffleReaderJniWrapper.create(runtime)
val batchSize = GlutenConfig.getConf.maxBatchSize
val handle = jniWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ object ColumnarShuffleExchangeExec extends Logging {
conf.celebornShuffleWriterType == GlutenConfig.GLUTEN_SORT_SHUFFLE_WRITER
partitioning != SinglePartition &&
(partitioning.numPartitions >= GlutenConfig.getConf.columnarShuffleSortPartitionsThreshold ||
output.size >= GlutenConfig.getConf.columnarShuffleSortColumnsThreshold) ||
isCelebornSortBasedShuffle
output.size >= GlutenConfig.getConf.columnarShuffleSortColumnsThreshold ||
isCelebornSortBasedShuffle)
}

class DummyPairRDDWithPartitions(@transient private val sc: SparkContext, numPartitions: Int)
Expand Down

0 comments on commit 020eaf6

Please sign in to comment.