Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/12887#discussion_r62148066
--- 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 --
We support:
repartition(N)
repartition(N, col1, col2)
repartition(col1, col2)
For the third case, the number of partition is
spark.sql.shuffle.partitions, not preserving the existing number of partitions.
Have I misunderstood something?
---
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]