[ 
https://issues.apache.org/jira/browse/GEODE-9018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17307346#comment-17307346
 ] 

ASF subversion and git services commented on GEODE-9018:
--------------------------------------------------------

Commit 863243af44e9f4ea2e501c3b24a62a1647a7df16 in geode's branch 
refs/heads/develop from Alberto Gomez
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=863243a ]

GEODE-9018: Fix ExtendedNumericComparator for NULL and UNDEFINED comp… (#6110)

* GEODE-9018: Fix ExtendedNumericComparator for NULL and UNDEFINED comparison

* GEODE-9018: Changes after review

* GEODE-9018: Added checks in test case after review

> 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
>
> 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)

Reply via email to