Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected result when using IS DISTINCT FROM #7521

Closed
suyZhong opened this issue May 24, 2024 · 1 comment
Closed

Unexpected result when using IS DISTINCT FROM #7521

suyZhong opened this issue May 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@suyZhong
Copy link

Describe the bug
The IS DISTINCT FROM operator in MonetDB returns unexpected results when used with NULL. Specifically, the negation of NULL IS DISTINCT FROM NULL returns NULL instead of true.

To Reproduce

SELECT (NULL IS DISTINCT FROM NULL); -- false
SELECT NOT (NULL IS DISTINCT FROM NULL); -- null (unexpected)

Expected behavior
As mentioned above.

Screenshots
N/A

Software versions
Build from source:

> docker exec -it monetdb-test mserver5 --version         
MonetDB 5 server 11.50.0 (hg id: 6e3d6f5) (64-bit, 128-bit integers)
This is an unreleased version
Copyright (c) 1993 - July 2008 CWI
Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved
Visit https://www.monetdb.org/ for further information
Found 503.5GiB available memory, 128 available cpu cores
Libraries:
Compiled by: @7094a4ca4432 (x86_64-pc-linux-gnu)
Compilation: /usr/bin/cc 
Linking    : /usr/bin/ld

Issue labeling
Bug

Additional context
Add any other context about the problem here.

@lrpereira lrpereira added the bug Something isn't working label May 24, 2024
monetdb-team pushed a commit that referenced this issue May 28, 2024
@aris-koning
Copy link
Member

Hi, thanks for reporting. It should be fixed on hg:3a51d8edf6af.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants