[ 
https://issues.apache.org/jira/browse/SPARK-18788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15737084#comment-15737084
 ] 

Shivaram Venkataraman commented on SPARK-18788:
-----------------------------------------------

Hmm I am not sure but I think the reason could be that the number of partitions 
isn't know statically and is determined by the query planner during execution. 
Or to put it another way it might not be cheap to get this 

> Add getNumPartitions() to SparkR
> --------------------------------
>
>                 Key: SPARK-18788
>                 URL: https://issues.apache.org/jira/browse/SPARK-18788
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR
>            Reporter: Raela Wang
>            Priority: Minor
>
> Would be really convenient to have getNumPartitions() in SparkR, which was in 
> the RDD API.
> rdd <- SparkR:::toRDD(df)
> SparkR:::getNumPartitions(rdd)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to