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

Add support binary boolean operators with nulls #4241

Closed
Ted-Jiang opened this issue Nov 16, 2022 · 0 comments · Fixed by #4242
Closed

Add support binary boolean operators with nulls #4241

Ted-Jiang opened this issue Nov 16, 2022 · 0 comments · Fixed by #4242

Comments

@Ted-Jiang
Copy link
Member

Ted-Jiang commented Nov 16, 2022

in datafsuion:

❯ select true or NULL ;
Plan("'Boolean OR Null' can't be evaluated because there isn't a common type to coerce the types to")
❯ select true or FALSE ;
+---------------------------------+
| Boolean(true) OR Boolean(false) |
+---------------------------------+
| true                            |
+---------------------------------+
1 row in set. Query took 0.003 seconds.
❯

RUN in spark-sql

spark-sql> select true or false;
true
Time taken: 3.139 seconds, Fetched 1 row(s)
spark-sql> select true or NULL;
true
Time taken: 0.076 seconds, Fetched 1 row(s)
spark-sql> select FALSE or NULL;
NULL
Time taken: 0.06 seconds, Fetched 1 row(s)
spark-sql>

I think its ok get error when run NULL or xxx

Originally posted by @Ted-Jiang in #4200 (comment)

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

Successfully merging a pull request may close this issue.

1 participant