cloud-fan commented on a change in pull request #32932:
URL: https://github.com/apache/spark/pull/32932#discussion_r656871920
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveHints.scala
##########
@@ -175,19 +175,20 @@ object ResolveHints {
*/
object ResolveCoalesceHints extends Rule[LogicalPlan] {
- val COALESCE_HINT_NAMES: Set[String] = Set("COALESCE", "REPARTITION",
"REPARTITION_BY_RANGE")
+ val COALESCE_HINT_NAMES: Set[String] =
+ Set("COALESCE", "REPARTITION", "REPARTITION_BY_RANGE",
"REBALANCE_PARTITIONS")
/**
* This function handles hints for "COALESCE" and "REPARTITION".
* The "COALESCE" hint only has a partition number as a parameter. The
"REPARTITION" hint
* has a partition number, columns, or both of them as parameters.
*/
private def createRepartition(
- shuffle: Boolean, hint: UnresolvedHint): LogicalPlan = {
+ shuffle: Boolean, hint: UnresolvedHint, adaptive: Boolean = false):
LogicalPlan = {
Review comment:
`REPARTITION_BY_RANGE` also has an individual method.
--
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]