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)

Reply via email to