Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 6, 2024

Backports the following commits to 8.x:

This reworks `Expressions#isNull` so it only matches the `null` literal.
This doesn't super change the way ESQL works because we already rewrite
things that `fold` into `null` into the `null` literal. It's just that,
now, `isNull` won't return `true` for things that *fold* to null - only
things that have *already* folded to null.

This is important because `fold` can be quite expensive so we're better
off keeping the results of it when possible. Which is what the constant
folding rules *do*.
@nik9000 nik9000 added :Analytics/Compute Engine Analytics in ES|QL >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Dec 6, 2024
@elasticsearchmachine elasticsearchmachine merged commit e750a70 into elastic:8.x Dec 6, 2024
15 checks passed
@nik9000 nik9000 deleted the backport/8.x/pr-118101 branch December 6, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Compute Engine Analytics in ES|QL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants