[
https://issues.apache.org/jira/browse/HIVE-11366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643310#comment-14643310
]
Gopal V commented on HIVE-11366:
--------------------------------
It will still call the deep hashcode, but exactly from one place -
{{org.apache.hadoop.hive.ql.plan.ExprNodeDesc$ExprNodeDescEqualityWrapper.<init>(ExprNodeDesc)
1}}
The earlier issue was that it was doing this whole tree for each hashmap check
for de-dup expressions.
> Avoid right leaning tree hashCode depth during ExprNodeDescEqualityWrapper
> HashMaps
> -----------------------------------------------------------------------------------
>
> Key: HIVE-11366
> URL: https://issues.apache.org/jira/browse/HIVE-11366
> Project: Hive
> Issue Type: Improvement
> Components: Logical Optimizer
> Affects Versions: 1.0.0, 1.2.0, 1.1.0, 1.1.1
> Reporter: Gopal V
> Assignee: Gopal V
> Attachments: HIVE-11366.1.patch
>
>
> For a large sequence of AND clauses, the precedence order results in a deep
> unbalanced tree.
> (AND A (AND B (AND C (AND D (AND E)....)
> which could result in a hashcode for the top-level expression traversing deep.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)