Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/12887#discussion_r62148282
--- Diff: R/pkg/R/DataFrame.R ---
@@ -570,10 +570,17 @@ setMethod("unpersist",
#' Repartition
#'
-#' Return a new SparkDataFrame that has exactly numPartitions partitions.
-#'
+#' The following options for repartition are possible:
+#' \itemize{
+#' \item{"Option 1"} {Return a new SparkDataFrame partitioned by
+#' the given columns into `numPartitions`.}
+#' \item{"Option 2"} {Return a new SparkDataFrame that has exactly
`numPartitions`.}
+#' \item{"Option 3"} {Return a new SparkDataFrame partitioned by the
given columns,
+#' preserving the existing number of partitions.}
--- End diff --
I think @NarineK is referring to the scala doc for `repartition` which says
```
/**
* Returns a new [[Dataset]] partitioned by the given partitioning
expressions preserving
* the existing number of partitions. The resulting Datasetis hash
partitioned.
...
* This is the same operation as "DISTRIBUTE BY" in SQL (Hive QL).
*/
def repartition(partitionExprs: Column*): Dataset[T] = withTypedPlan {
```
---
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]