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 incorrect IsNull predicate for row of nulls #20209

Closed
wants to merge 1 commit into from

Conversation

sahoss
Copy link
Contributor

@sahoss sahoss commented Dec 22, 2023

Description

Additional context and related issues

#19444

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix incorrect IsNull predicate for row of nulls. ({issue}`19444`)

@cla-bot cla-bot bot added the cla-signed label Dec 22, 2023
@@ -439,6 +439,15 @@ protected Object visitIsNullPredicate(IsNullPredicate node, Object context)
return new IsNullPredicate(toExpression(value, type(node.getValue())));
}

if (value instanceof SqlRow sqlRow) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be fixed in the code generator (io.trino.sql.gen.IsNullCodeGenerator) and IrExpressionInterpreter, and for IsNotNullPredicate in all places.

@ebyhr
Copy link
Member

ebyhr commented Nov 8, 2024

Let me close as a stale PR.

@ebyhr ebyhr closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants