[
https://issues.apache.org/jira/browse/SPARK-9427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14699843#comment-14699843
]
Davies Liu commented on SPARK-9427:
-----------------------------------
[~yu_ishikawa] `rand` does work in PySpark (Python 2.7):
{code}
>>> sqlContext.range(10).select(rand(2), "id").show()
+-------------------+---+
| rand()| id|
+-------------------+---+
| 0.6038577325006693| 0|
| 0.6319470735268434| 1|
|0.22327628846133507| 2|
|0.24223739932588373| 3|
| 0.8395518879513995| 4|
| 0.5662927043813443| 5|
| 0.2057736041310516| 6|
| 0.3408245196642603| 7|
|0.08641290347537589| 8|
|0.46561147527615276| 9|
+-------------------+---+
{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]