Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9018

ExtendedNumericComparator does not compare correctly NULL and UNDEFINED

    XMLWordPrintableJSON

Details

    Description

      The compareTo method of ExtendedNumericComparator does not compare correctly UNDEFINED and NULL.

      UNDEFINED should always be smaller than anything but it is not always so when compared with NULL.

      compareTo(NULL, UNDEFINED) returns 1, which is correct

      but

      compareTo(UNDEFINED, NULL) returns 1, and it should return -1.

      This could provoke that queries with indexes do not return the right results when these values are involved.

      Attachments

        Issue Links

          Activity

            People

              alberto.gomez Alberto Gomez
              alberto.gomez Alberto Gomez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: