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

Bago Amirbekian commented on SPARK-20586:
-----------------------------------------

Also a follow up questions, are the performance implications to using the 
`deterministic` flag we should try and avoid by restructuring the ml UDFs to 
avoid raising within the UDF.

> Add deterministic to ScalaUDF
> -----------------------------
>
>                 Key: SPARK-20586
>                 URL: https://issues.apache.org/jira/browse/SPARK-20586
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>             Fix For: 2.3.0
>
>
> https://hive.apache.org/javadocs/r2.0.1/api/org/apache/hadoop/hive/ql/udf/UDFType.html
> Like Hive UDFType, we should allow users to add the extra flags for ScalaUDF 
> too. {{stateful}}/{{impliesOrder}} are not applicable to ScalaUDF. Thus, we 
> only add the following two flags. 
> - deterministic: Certain optimizations should not be applied if UDF is not 
> deterministic. Deterministic UDF returns same result each time it is invoked 
> with a particular input. This determinism just needs to hold within the 
> context of a query.



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

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

Reply via email to