[ https://issues.apache.org/jira/browse/HIVE-3853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13545816#comment-13545816 ]
Phabricator commented on HIVE-3853: ----------------------------------- njain has commented on the revision "HIVE-3853 [jira] UDF unix_timestamp is deterministic if an argument is given, but it treated as non-deterministic preventing PPD". This calls for deterministic not being an annotation - by any chance, do you know if the annotation can be overwritten dynamically -- otherwise duplicate function is OK INLINE COMMENTS ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFToUnixTimestamp.java:52 Can you share the code between this and unix_timestamp ? I mean create a common class,and both the functions can extend that. REVISION DETAIL https://reviews.facebook.net/D7767 To: JIRA, navis Cc: njain > UDF unix_timestamp is deterministic if an argument is given, but it treated > as non-deterministic preventing PPD > --------------------------------------------------------------------------------------------------------------- > > Key: HIVE-3853 > URL: https://issues.apache.org/jira/browse/HIVE-3853 > Project: Hive > Issue Type: Improvement > Components: UDF > Reporter: Navis > Assignee: Navis > Priority: Trivial > Labels: udf > Attachments: HIVE-3853.D7767.1.patch > > > unix_timestamp is declared as a non-deterministic function. But if user > provides an argument, it makes deterministic result and eligible to PPD. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira