[
https://issues.apache.org/jira/browse/HIVE-8188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134050#comment-15134050
]
Sergey Zadoroshnyak commented on HIVE-8188:
-------------------------------------------
[~hagleitn]
[~prasanth_j]
[~thejas]
GenericUDAFEvaluator.isEstimable(agg) always returns false, because annotation
AggregationType has default RetentionPolicy.CLASS and cannot be retained by
the VM at run time.
As result estimate method will never be executed.
I am going to open new jira issue, if no objections
> ExprNodeGenericFuncEvaluator::_evaluate() loads class annotations in a tight
> loop
> ---------------------------------------------------------------------------------
>
> Key: HIVE-8188
> URL: https://issues.apache.org/jira/browse/HIVE-8188
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 0.14.0
> Reporter: Gopal V
> Assignee: Gopal V
> Labels: Performance
> Fix For: 0.14.0
>
> Attachments: HIVE-8188.1.patch, HIVE-8188.2.patch,
> udf-deterministic.png
>
>
> When running a near-constant UDF, most of the CPU is burnt within the VM
> trying to read the class annotations for every row.
> !udf-deterministic.png!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)