[
https://issues.apache.org/jira/browse/SPARK-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043180#comment-14043180
]
Ximo Guanter commented on SPARK-1247:
-------------------------------------
This seems to be fixed by the following function:
{code}
implicit def numericRDDToDoubleRDDFunctions[T](rdd: RDD[T])(implicit num:
Numeric[T]) =
new DoubleRDDFunctions(rdd.map(x => num.toDouble(x)))
{code}
> Support some of the RDD double functions on float and int as well.
> ------------------------------------------------------------------
>
> Key: SPARK-1247
> URL: https://issues.apache.org/jira/browse/SPARK-1247
> Project: Spark
> Issue Type: New Feature
> Components: Documentation, Java API, PySpark, Spark Core
> Affects Versions: 1.0.0
> Reporter: prashant
> Assignee: prashant
> Priority: Minor
>
> Pyspark is already agnostic, but currently Java and scala provides the
> implicit functions like stats/ histogram etc only if the RDD is on Double.
> This can be extended easily to support more numeric types.
--
This message was sent by Atlassian JIRA
(v6.2#6252)