You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/12/03 16:23:23 UTC
[GitHub] [spark] maryannxue commented on a change in pull request #34785: [SPARK-37523][SQL] Support optimize skewed partitions in Distribution and Ordering if numPartitions is not specified
maryannxue commented on a change in pull request #34785:
URL: https://github.com/apache/spark/pull/34785#discussion_r762074769
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
##########
@@ -1405,7 +1405,8 @@ case class Repartition(numPartitions: Int, shuffle: Boolean, child: LogicalPlan)
case class RepartitionByExpression(
partitionExpressions: Seq[Expression],
child: LogicalPlan,
- optNumPartitions: Option[Int]) extends RepartitionOperation {
+ optNumPartitions: Option[Int],
+ userSpecified: Boolean = true) extends RepartitionOperation {
Review comment:
A little confused here, doesn't the `Option` part of `optNumPartitions: Option[Int]` already contain the information of `userSpecified`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org