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 results when Using RIGHT JOIN #1214

Closed
suyZhong opened this issue Jan 2, 2024 · 1 comment
Closed

Unexpected results when Using RIGHT JOIN #1214

suyZhong opened this issue Jan 2, 2024 · 1 comment

Comments

@suyZhong
Copy link

suyZhong commented Jan 2, 2024

Consider the test cases below. It is unexpected that the following queries all return 1, since NULL IS NOT NULL and NULL IS NULL could not be evaluated to true at the same time.

CREATE TABLE t0(c0 INT);
CREATE TABLE t1(c1 INT);
INSERT INTO t1 (c1) VALUES (1);
SELECT * FROM t0 RIGHT JOIN t1 ON 1; -- NULL 1

-- At least one of the query should return empty result
SELECT * FROM t0 RIGHT JOIN t1 ON 1 WHERE (NULL IS NOT NULL); -- NULL 1
SELECT * FROM t0 RIGHT JOIN t1 ON 1 WHERE (NULL IS NULL); -- NULL 1

Here's the version I used:

docker run -i -t pkleef/virtuoso-opensource-7 version

[pkleef/virtuoso-opensource-7:7.2.12-r17.1-g466615d-ubuntu]

This Docker image is using the following version of Virtuoso:

Virtuoso Open Source Edition (Column Store) (multi threaded)
Version 7.2.12-dev.3238-pthreads as of Dec 15 2023 (e49c0644f)
Compiled for Linux (x86_64-ubuntu_bionic-linux-gnu)
Copyright (C) 1998-2023 OpenLink Software
@HughWilliams
Copy link
Collaborator

we are looking into this ...

@TallTed TallTed changed the title Unexpected results when Using RIGHT JOIN Unexpected results when Using RIGHT JOIN Jan 2, 2024
@pkleef pkleef closed this as completed in aba9d36 Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants