[ https://issues.apache.org/jira/browse/HIVE-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146526#comment-13146526 ]
Phabricator commented on HIVE-2532: ----------------------------------- jsichi has commented on the revision "HIVE-2532 [jira] Evaluation of non-deterministic/stateful UDFs should not be skipped even if constant oi is returned.". Try this: SELECT 1+ASSERT_TRUE(x < 2) FROM src LATERAL VIEW EXPLODE(ARRAY(1, 2)) a AS x LIMIT 2; I assume it should hit an exception, but it actually passes. Guess why? INLINE COMMENTS ql/src/java/org/apache/hadoop/hive/ql/exec/ExprNodeGenericFuncEvaluator.java:144 FunctionRegistry.isDeterministic always returns false for a stateful UDF, so you don't need to double-check here. REVISION DETAIL https://reviews.facebook.net/D273 > Evaluation of non-deterministic/stateful UDFs should not be skipped even if > constant oi is returned. > ---------------------------------------------------------------------------------------------------- > > Key: HIVE-2532 > URL: https://issues.apache.org/jira/browse/HIVE-2532 > Project: Hive > Issue Type: Bug > Reporter: Jonathan Chang > Assignee: Jonathan Chang > Attachments: D273.1.patch > > > Even if constant oi is returned, these may have stateful/side-effect behavior > and hence need to be called each cycle. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira