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

    https://github.com/apache/spark/pull/12887#discussion_r62147815
  
    --- 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 --
    
    It seems that python is raising an error:
    
https://github.com/apache/spark/blob/master/python/pyspark/sql/dataframe.py#L434
    
    As far as I understand scala requires parameters by signature. I do not see 
repartition with empty parameter.
    
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala#L2162



---
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