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 2016/09/01 01:35:21 UTC
[jira] [Created] (CALCITE-1367) Implement equals and hashCode for
all sub-classes of RexNode
Julian Hyde created CALCITE-1367:
------------------------------------
Summary: Implement equals and hashCode for all sub-classes of RexNode
Key: CALCITE-1367
URL: https://issues.apache.org/jira/browse/CALCITE-1367
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Assignee: Julian Hyde
Currently not all sub-classes of {{RexNode}} override {{Object.equals}} and {{Object.hashCode}} methods, so they can't be used in java collections, e.g. as keys in maps.
To fix, override {{equals}} and {{hashCode}} in {{RexCall}} and maybe other sub-classes. See if there are workarounds (using digests instead of the {{RexNode}} themselves, using {{IdentityHashMap}}, using canonization) and if appropriate remove them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)