Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma committed Aug 1, 2024
1 parent 50d44b7 commit c40de2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ object ColumnarShuffleExchangeExec extends Logging {
}

def useSortBasedShuffle(partitioning: Partitioning, output: Seq[Attribute]): Boolean = {
val conf = GlutenConfig.getConf
partitioning != SinglePartition &&
(partitioning.numPartitions >= GlutenConfig.getConf.columnarShuffleSortPartitionsThreshold ||
output.size >= GlutenConfig.getConf.columnarShuffleSortColumnsThreshold)
(conf.isUseCelebornShuffleManager &&
conf.celebornShuffleWriterType == GlutenConfig.GLUTEN_SORT_SHUFFLE_WRITER ||
partitioning.numPartitions >= conf.columnarShuffleSortPartitionsThreshold ||
output.size >= conf.columnarShuffleSortColumnsThreshold)
}

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

0 comments on commit c40de2e

Please sign in to comment.