Xiao Li created SPARK-20335:
-------------------------------
Summary: 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.1.0, 2.0.2
Reporter: Xiao Li
Assignee: Xiao Li
{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: [email protected]
For additional commands, e-mail: [email protected]