cloud-fan commented on a change in pull request #30432:
URL: https://github.com/apache/spark/pull/30432#discussion_r528491493
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
##########
@@ -56,10 +56,27 @@ trait ShuffleExchangeLike extends Exchange {
*/
def numPartitions: Int
+ def partitioningFlexibility: PartitioningFlexibility.Value
+
/**
* Returns whether the shuffle partition number can be changed.
*/
- def canChangeNumPartitions: Boolean
+ def canChangeNumPartitions: Boolean = {
Review comment:
This is more like a util method as implementations don't need to
implement it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]