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

    https://github.com/apache/spark/pull/9364#discussion_r43558527
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/partitioning.scala
 ---
    @@ -31,10 +31,11 @@ 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 partition in `child` is 
preserved.
    --- End diff --
    
    the partition in `child` is preserved. => the number of partitions of the 
`child` is preserved?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to