Skip to content

Commit

Permalink
fix celeborn sort shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma committed Aug 5, 2024
1 parent bddf3af commit 9de4d9c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,13 @@ object ColumnarShuffleExchangeExec extends Logging {
}

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

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

0 comments on commit 9de4d9c

Please sign in to comment.