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

Hayri Volkan Agun commented on SPARK-20268:
-------------------------------------------

Hi Owen,

If the first element is the fastest let's close it. 

> Arbitrary RDD element (Fast return) instead of using first
> ----------------------------------------------------------
>
>                 Key: SPARK-20268
>                 URL: https://issues.apache.org/jira/browse/SPARK-20268
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, Spark Core
>    Affects Versions: 2.0.0, 2.0.1, 2.1.0
>            Reporter: Hayri Volkan Agun
>            Priority: Minor
>
> Most of the ML and MLLIB algorithms somehow need the column size of the rdd 
> vector (RDD[Vector]). So instead of getting the first element by rdd.first(), 
> a fast return can be made to calculate the length of the vector of a 
> arbitrary rdd element. It can also be be named any(). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to