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

EXISTS operator returns NULL when multiple predicates are present #9456

Closed
1 task done
majetideepak opened this issue Oct 24, 2023 · 0 comments
Closed
1 task done

Comments

@majetideepak
Copy link

majetideepak commented Oct 24, 2023

What happens?

EXISTS operator returns NULL. The documentation says it should only return true or false.

To Reproduce

create table u(u0 int, u1 int);
create table t(t0 int, t1 int);
insert into u values(1, 10);
insert into t values(1, 11);
insert into u values(null, 20);
insert into t values(null, 21);
SELECT t0, t1, EXISTS (SELECT * FROM u WHERE u0 = t0 AND u1 < t1) FROM t;

OS:

arm64

DuckDB Version:

0.9.1

DuckDB Client:

CLI

Full Name:

Deepak Majeti

Affiliation:

IBM

Have you tried this on the latest main branch?

I have tested with a main build

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • Yes, I have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants