Skip to content

ESQL: Allow the data type of null in filters #127618

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

Merged
merged 3 commits into from
May 1, 2025
Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented May 1, 2025

Backports two PRs by @kanoshiou:

Closes #116351

This PR fixes #119950 where an IN query includes NULL values with non-NULL DataType appearing within the query range. An expression is considered NULL when its DataType is NULL or it is a Literal with a value of null.

kanoshiou added 2 commits May 1, 2025 15:46
* Allow the data type of `null` in filters
This PR fixes elastic#119950 where an `IN` query includes `NULL` values with non-NULL `DataType` appearing within the query range. An expression is considered `NULL` when its `DataType` is `NULL` or it is a `Literal` with a value of `null`.
@@ -307,11 +307,11 @@ public void testEmptyProjectionInStat() {

/**
* Expects
*
* <p>
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really know how these landed here to be honest.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't believe I really made a change to this file. I'm going to revert it.

@nik9000
Copy link
Member Author

nik9000 commented May 1, 2025

Note that some of this PR was accidentally backported as part of another change. Either way, this gets the rest.

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

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

👍

@nik9000 nik9000 enabled auto-merge (squash) May 1, 2025 20:22
@nik9000 nik9000 merged commit 655e3ce into elastic:8.19 May 1, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants