Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KYUUBI #6830] Allow indicate advisory shuffle partition size when me… #6831

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ object KyuubiSQLConf {
.booleanConf
.createWithDefault(false)

val REBALANCE_ADVISORY_PARTITION_SIZE_IN_BYTES =
buildConf("spark.sql.optimizer.rebalanceAdvisoryPartitionSize")
.doc("The advisory size in bytes of the shuffle partition during merge small files. " +
s"It takes effect when Spark coalesces small shuffle partitions or splits skewed " +
s"shuffle partition.")
.version("1.10.1")
.fallbackConf(ADVISORY_PARTITION_SIZE_IN_BYTES)

val WATCHDOG_MAX_PARTITIONS =
buildConf("spark.sql.watchdog.maxPartitions")
.doc("Set the max partition number when spark scans a data source. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ trait RepartitionBuilderWithRebalance extends RepartitionBuilder {
query: LogicalPlan): LogicalPlan = {
if (!conf.getConf(KyuubiSQLConf.INFER_REBALANCE_AND_SORT_ORDERS) ||
dynamicPartitionColumns.nonEmpty) {
RebalancePartitions(dynamicPartitionColumns, query)
val adviceBytes = conf.getConf(KyuubiSQLConf.REBALANCE_ADVISORY_PARTITION_SIZE_IN_BYTES)
RebalancePartitions(dynamicPartitionColumns, query, None, Option.apply(adviceBytes))
} else {
val maxColumns = conf.getConf(KyuubiSQLConf.INFER_REBALANCE_AND_SORT_ORDERS_MAX_COLUMNS)
val inferred = InferRebalanceAndSortOrders.infer(query)
Expand Down
Loading