-
Notifications
You must be signed in to change notification settings - Fork 25k
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
ES|QL: Fix RLIKE folding with (unsupported) case insensitive pattern #118454
ES|QL: Fix RLIKE folding with (unsupported) case insensitive pattern #118454
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @luigidellaquila, I've created a changelog YAML for you. |
@@ -93,6 +93,11 @@ protected TypeResolution resolveType() { | |||
return isString(field(), sourceText(), DEFAULT); | |||
} | |||
|
|||
@Override | |||
public Boolean fold() { | |||
return (Boolean) EvaluatorMapper.super.fold(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix, all the rest is refactoring and code cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
💚 Backport successful
|
I'm also backporting to 8.17.1: #119292 |
Thanks @nik9000! |
Happy to do it. |
RLIKE with
(?i)
prefix (case-insensitive) is not supported in ES|QL, but in a specific case (constant folding) the calculation relied on Java regex, that actually supports it, making the overall behavior inconsistent.With this fix,
(?i)
prefix is not taken into consideration as a case-insensitive option.Taking a chance to cleanup a bit the
RegexMatch
operator hierarchy.Fixes: #118371