Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1367

Implement equals and hashCode for all sub-classes of RexNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.18.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: