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

Zhong Yu commented on CALCITE-2287:
-----------------------------------

If {{o}} is some {{Plat3List}} that tries to do the same trick, the cycle 
continues :) {{Plat3List}} could as well be {{Flat3List}} from another class 
loader.

I'll be on vacation without my computer; I would appreciate if someone can take 
over this issue and conclude with a better solution.  

> StackOverflowError from FlatList equals()
> -----------------------------------------
>
>                 Key: CALCITE-2287
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2287
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Zhong Yu
>            Assignee: Julian Hyde
>            Priority: Major
>
> The equals() method of `Flat3List` and `Flat4List` may invoke each other in 
> an infinite loop.
> See also https://issues.apache.org/jira/browse/HIVE-18427
>  
> We found this problem when such lists are used as keys in 
> `RelMetadataQuery.map`; occasionally there are hashcode collisions between 
> `Flat3List` and `Flat4List`, hence their equals() methods will be invoked.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to