Github user yhuai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9364#discussion_r43586777
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/partitioning.scala
 ---
    @@ -31,10 +31,18 @@ case class SortPartitions(sortExpressions: 
Seq[SortOrder], child: LogicalPlan)
       extends RedistributeData
     
     /**
    - * This method repartitions data using [[Expression]]s, and receives 
information about the
    - * number of partitions during execution. Used when a specific ordering or 
distribution is
    - * expected by the consumer of the query result. Use [[Repartition]] for 
RDD-like
    + * This method repartitions data using [[Expression]]s into 
`numPartitions`, and receives
    + * information about the number of partitions during execution. Used when 
a specific ordering or
    + * distribution is expected by the consumer of the query result. Use 
[[Repartition]] for RDD-like
      * `coalesce` and `repartition`.
    + * If `numPartitions` is not specified, the partitioning of `child` is 
preserved.
    --- End diff --
    
    Seems we need to update this conf to something like `If numPartitions  is 
not specified, the value of spark.sql.shuffle.partitions will be used as the 
number of partitions.` I can fix it when I merge it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to