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

ESQL: Explain IN #119514

Merged
merged 3 commits into from
Jan 6, 2025
Merged

ESQL: Explain IN #119514

merged 3 commits into from
Jan 6, 2025

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 3, 2025

Adds javadoc to IN to explain it's three-valued null logic and why it isn't using the standard code generators.

Relates to #119480

Adds javadoc to IN to explain it's three-valued null logic and why it
isn't using the standard code generators.
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

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

So, wait, the behavior here is that, if the set to match contains a null, we return true if the value to test matches one of the non-null values, and null if it does not? If that's the intent, I think we should be explicit about it, I had to read those rules three times to understand this was how it worked.

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

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

The examples help a lot. Thanks for updating this.

@nik9000 nik9000 merged commit 359592f into elastic:main Jan 6, 2025
16 checks passed
@nik9000
Copy link
Member Author

nik9000 commented Jan 6, 2025

Oh shoot. I didn't auto-backport. I'll do it by hand.

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Jan 7, 2025
* ESQL: Explain IN

Adds javadoc to IN to explain it's three-valued null logic and why it
isn't using the standard code generators.

* Paste more examples
@nik9000
Copy link
Member Author

nik9000 commented Jan 7, 2025

backport: #119514

elasticsearchmachine pushed a commit that referenced this pull request Jan 7, 2025
* ESQL: Explain IN

Adds javadoc to IN to explain it's three-valued null logic and why it
isn't using the standard code generators.

* Paste more examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants