You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/06/13 01:56:00 UTC

[jira] [Commented] (SPARK-8336) Fix NullPointerException with functions.rand()

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

Apache Spark commented on SPARK-8336:
-------------------------------------

User 'tedyu' has created a pull request for this issue:
https://github.com/apache/spark/pull/6793

> Fix NullPointerException with functions.rand()
> ----------------------------------------------
>
>                 Key: SPARK-8336
>                 URL: https://issues.apache.org/jira/browse/SPARK-8336
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> The problem was first reported by Justin Yip in the thread 'NullPointerException with functions.rand()'
> Here is how to reproduce the problem:
> {code}
> sqlContext.createDataFrame(Seq((1,2), (3, 100))).withColumn("index", rand(30)).show()
> {code}



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

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