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

Fix slicing of tuple arrays with null inputs #4421

Merged
merged 1 commit into from Sep 23, 2022
Merged

Conversation

msullivan
Copy link
Member

The issue here was kind of silly: NULL was being produced, as is
proper, but because the Index and Slice nodes in pgast weren't derived
from BaseExpr (since they weren't really exprs), _infer_nullability
didn't consider it when figuring out the nullability of the output
slice, which then didn't get checked for NULL and was output to the
client.

The issue here was kind of silly: NULL was being produced, as is
proper, but because the Index and Slice nodes in pgast weren't derived
from BaseExpr (since they weren't *really* exprs), _infer_nullability
didn't consider it when figuring out the nullability of the output
slice, which then didn't get checked for NULL and was output to the
client.
@msullivan msullivan merged commit 3cf2e96 into master Sep 23, 2022
@msullivan msullivan deleted the inline-slice branch September 23, 2022 21:32
msullivan added a commit that referenced this pull request Sep 23, 2022
The issue here was kind of silly: NULL was being produced, as is
proper, but because the Index and Slice nodes in pgast weren't derived
from BaseExpr (since they weren't *really* exprs), _infer_nullability
didn't consider it when figuring out the nullability of the output
slice, which then didn't get checked for NULL and was output to the
client.
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 this pull request may close these issues.

None yet

2 participants