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

[8.x] ESQL: Do not fold in Range.foldable (#119766) #119964

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

alex-spies
Copy link
Contributor

Backports the following commits to 8.x:

The upper and lower bounds can be incompatible, in which case the range
is foldable to FALSE independently of the foldability of the field.

But we shouldn't try and fold the bounds to find out. Calling
`foldable` really shouldn't already perform folding.

Instead, only perform the check for the invalid bounds if the bounds are
already literals. This means that folding will still take place, but it
requires the range's child expressions to be folded first.
@alex-spies alex-spies added :Analytics/ES|QL AKA ESQL >non-issue >tech debt 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 Jan 10, 2025
@elasticsearchmachine elasticsearchmachine merged commit 1a110a5 into elastic:8.x Jan 10, 2025
15 checks passed
@alex-spies alex-spies deleted the backport/8.x/pr-119766 branch January 10, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL 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) >tech debt v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants