You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/05/01 23:02:00 UTC

[jira] [Resolved] (CALCITE-2287) StackOverflowError from FlatList equals()

     [ https://issues.apache.org/jira/browse/CALCITE-2287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-2287.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.17.0

Test case in [08e43229|http://git-wip-us.apache.org/repos/asf/calcite/commit/08e43229] and fixed in [7924eb0e|http://git-wip-us.apache.org/repos/asf/calcite/commit/7924eb0e]. Thanks [~zhong.j.yu] and [~zhenw]!

> 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
>             Fix For: 1.17.0
>
>
> 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)