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

ASF subversion and git services commented on ASTERIXDB-3418:
------------------------------------------------------------

Commit fee1bf25dd789cb2fc024e0c1691656bff5056ca in asterixdb's branch 
refs/heads/master from Peeyush Gupta
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=fee1bf25dd ]

[ASTERIXDB-3418][*DB] Predicate 0.0=-0.0 returns false

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
Predicate 0.0=-0.0 incorrectly return false as we were using
Double.compare to compare double values.

Change-Id: I3cfa0b9cbf149021fd4fd1759f29e7ddba34956f
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18344
Tested-by: Jenkins <[email protected]>
Reviewed-by: Peeyush Gupta <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>


> Predicate 0.0=-0.0 returns false
> --------------------------------
>
>                 Key: ASTERIXDB-3418
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3418
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: *DB - AsterixDB
>            Reporter: Peeyush Gupta
>            Assignee: Peeyush Gupta
>            Priority: Major
>              Labels: triaged
>
> Predicate 0.0=-0.0 returns false but according to IEEE 754 standard -0.0 
> should compare as equal to 0.0 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to