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

Yu Ishikawa commented on SPARK-9427:
------------------------------------

[~shivaram] and [~davies]

How do we convert R {{integer}} type to Scala {{Long}} type?
I have trouble with implementing {{rand(seed: Long)}} function in SparkR. R 
{{integer}} type is recognized as Scala {{Int}} and R {{numeric}} type is 
recognized as Scala {{Double}} type. So I wonder how I should deal with 64 bit 
integer on R. I think we should add {{rand(seed: Int)}} into spark.sql on 
Scala. What do you think?

Plus, I guess PySpark {{rand}} doesn't work on Python 2.x on the same reason. 
Because {{int}} on Python 2.x is recognized as Scala {{Integer}} type.

> Add expression functions in SparkR
> ----------------------------------
>
>                 Key: SPARK-9427
>                 URL: https://issues.apache.org/jira/browse/SPARK-9427
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR
>            Reporter: Yu Ishikawa
>
> The list of functions to add is based on SQL's functions. And it would be 
> better to add them in one shot PR.
> https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/functions.scala



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