You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2017/04/17 08:01:41 UTC
[jira] [Updated] (SPARK-20335) Children expressions of Hive UDF
impacts the determinism of Hive UDF
[ https://issues.apache.org/jira/browse/SPARK-20335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan updated SPARK-20335:
--------------------------------
Fix Version/s: 2.1.1
> Children expressions of Hive UDF impacts the determinism of Hive UDF
> --------------------------------------------------------------------
>
> Key: SPARK-20335
> URL: https://issues.apache.org/jira/browse/SPARK-20335
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.2, 2.1.0
> Reporter: Xiao Li
> Assignee: Xiao Li
> Fix For: 2.1.1, 2.2.0
>
>
> {noformat}
> /**
> * 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.
> *
> * @return true if the UDF is deterministic
> */
> boolean deterministic() default true;
> {noformat}
> Based on the definition o UDFType, when Hive UDF's children are non-deterministic, Hive UDF is also non-deterministic.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org