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

track projection nullability through expressions #76

Open
cyberhuman opened this issue Sep 20, 2019 · 2 comments
Open

track projection nullability through expressions #76

cyberhuman opened this issue Sep 20, 2019 · 2 comments

Comments

@cyberhuman
Copy link
Contributor

cyberhuman commented Sep 20, 2019

Since we now have a basic support for NULLs I imagine it must be pretty easy to propagate information about nullability through expressions. The rules are quite simple: other than functions/operators specifically operating on nulls, everything else should be nullable if one of the operands is nullable.
NULLIF(X, Y) is always nullable
IFNULL(Xn... ) and COALESCE(Xn...) are nullable if every Xn is nullable
IS [NOT] DISTINCT FROM and <=> are not nullable
all (?) aggregate functions except for COUNT() are nullable.

ygrek added a commit that referenced this issue Sep 29, 2020
ref #5 #76
TODO functions operating on NULLs specifically
ygrek added a commit that referenced this issue Mar 4, 2022
ref #5 #76
TODO functions operating on NULLs specifically
ygrek added a commit that referenced this issue Mar 4, 2022
ref #5 #76
TODO functions operating on NULLs specifically
ygrek added a commit that referenced this issue May 6, 2022
ygrek added a commit that referenced this issue Jun 3, 2022
ygrek added a commit that referenced this issue Feb 23, 2023
ygrek added a commit that referenced this issue Nov 24, 2023
ygrek added a commit that referenced this issue Nov 24, 2023
ygrek added a commit that referenced this issue Nov 26, 2023
ygrek added a commit that referenced this issue Nov 26, 2023
ygrek added a commit that referenced this issue Nov 26, 2023
ygrek added a commit that referenced this issue Dec 1, 2023
@jongleb
Copy link
Collaborator

jongleb commented Sep 27, 2024

The current state is all works as it needs besides <=>

@ygrek
Copy link
Owner

ygrek commented Sep 27, 2024

I like the OP "pretty easy" claim 😹

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

3 participants