[
https://issues.apache.org/jira/browse/HIVE-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427249#comment-13427249
]
rohithsharma commented on HIVE-2532:
------------------------------------
I tested with changing implementation to boolean.All the positive scenario
works fine. Whereas , "SELECT 1 + assert_true FROM src" fails.
{noformat}
2012-08-02 16:34:31,173 ERROR ql.Driver (SessionState.java:printError(400)) -
FAILED: Error in semantic analysis: Line 1:7 Wrong arguments '0': Unable to
find a common class betweentypes int and boolean
org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:7 Wrong arguments
'0': Unable to find a common class betweentypes int and boolean
at
org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.process(TypeCheckProcFactory.java:896)
at
org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:89)
{noformat}
With string return type, "SELECT 1 + assert_true FROM src" query execution is
successfull.
> 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
> Fix For: 0.8.0
>
> Attachments: D273.1.patch, D273.2.patch, D273.3.patch, D273.4.patch,
> D273.4.patch, D273.4.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