You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Alberto Gomez (Jira)" <ji...@apache.org> on 2021/03/25 11:48:00 UTC
[jira] [Resolved] (GEODE-9018) ExtendedNumericComparator does not
compare correctly NULL and UNDEFINED
[ https://issues.apache.org/jira/browse/GEODE-9018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Gomez resolved GEODE-9018.
----------------------------------
Fix Version/s: 1.15.0
Resolution: Fixed
> ExtendedNumericComparator does not compare correctly NULL and UNDEFINED
> -----------------------------------------------------------------------
>
> Key: GEODE-9018
> URL: https://issues.apache.org/jira/browse/GEODE-9018
> Project: Geode
> Issue Type: Bug
> Components: querying
> Reporter: Alberto Gomez
> Assignee: Alberto Gomez
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.15.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)