Skip to content

Commit

Permalink
[VL] Add shuffle writer type to ColumnarExchange display string (#6799)
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma authored Aug 14, 2024
1 parent 1205707 commit db799a4
Show file tree
Hide file tree
Showing 256 changed files with 1,050 additions and 1,060 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ class CHSparkPlanExecApi extends SparkPlanExecApi {
}
// scalastyle:on argcount

/** Determine whether to use sort-based shuffle based on shuffle partitioning and output. */
override def useSortBasedShuffle(partitioning: Partitioning, output: Seq[Attribute]): Boolean =
false

/**
* Generate ColumnarShuffleWriter for ColumnarShuffleManager.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,17 @@ class VeloxSparkPlanExecApi extends SparkPlanExecApi {
}
// scalastyle:on argcount

/** Determine whether to use sort-based shuffle based on shuffle partitioning and output. */
override 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) ||
isCelebornSortBasedShuffle
}

/**
* Generate ColumnarShuffleWriter for ColumnarShuffleManager.
*
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit db799a4

Please sign in to comment.