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 2018/01/03 14:44:00 UTC

[jira] [Commented] (SPARK-22945) add java UDF APIs in the functions object

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

Apache Spark commented on SPARK-22945:
--------------------------------------

User 'cloud-fan' has created a pull request for this issue:
https://github.com/apache/spark/pull/20141

> add java UDF APIs in the functions object
> -----------------------------------------
>
>                 Key: SPARK-22945
>                 URL: https://issues.apache.org/jira/browse/SPARK-22945
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Wenchen Fan
>            Assignee: Wenchen Fan
>
> Currently Scala users can use UDF like
> {code}
> val foo = udf((i: Int) => Math.random() + i).asNondeterministic
> df.select(foo('a))
> {code}
> Python users can also do it with similar APIs. However Java users can't do it, we should add Java UDF APIs in the functions object.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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