hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Kabiljo (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2470) Improve support for Constant Object Inspectors
Date Fri, 30 Sep 2011 15:38:46 GMT

    [ https://issues.apache.org/jira/browse/HIVE-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118141#comment-13118141
] 

Igor Kabiljo commented on HIVE-2470:
------------------------------------

I think, if the UdfType(deterministic=true):
- returns constant OI, if all arguments are constant OI
- handles both compile-time constant OIs and run-time passing of constant OIs
it can all work, if EVAL is not marked as deterministic, and has its own internal logic if
it can return constant OI or not.

In any case, EVAL cannot be marked as deterministic and must have its own internal logic,
since EVAL('RAND') receives all constant OIs, and doesn't return constant OI. On the other
hand EVAL('ARRAY', 1, 2, 3) should return constant OI.

Also, here 'deterministic' and without 'side-effects' is treated the same, but we can have
function returning constant OI in runtime, that has side-effects - like JAVA_F. 

                
> Improve support for Constant Object Inspectors
> ----------------------------------------------
>
>                 Key: HIVE-2470
>                 URL: https://issues.apache.org/jira/browse/HIVE-2470
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Jonathan Chang
>            Assignee: Jonathan Chang
>         Attachments: HIVE-1360.part2.patch, HIVE-2470.patch
>
>
> ConstantObjectInspectors are nice but they need to be more widely supported and used.
 In particular,
> * More functions need to be using them.
> * There need to be facilities for propagating constness.
> * Support for complex types must be added.

--
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

        

Mime
View raw message