Skip to content

Commit 3c4e893

Browse files
disable ReplaceStringCasingWithInsensitiveRegexMatch rule in 8.19
1 parent e4042fd commit 3c4e893

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/where-like.csv-spec

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,3 +874,15 @@ emp_no:integer |first_name:keyword
874874
10001 |Georgi
875875
10055 |Georgy
876876
;
877+
878+
rlikeWithLowerTurnedInsensitiveUnicode#[skip:-8.12.99]
879+
FROM airport_city_boundaries
880+
| WHERE TO_UPPER(region) RLIKE ".*Л.*" and abbrev == "FRU"
881+
| KEEP region
882+
;
883+
884+
region:text
885+
Свердлов району
886+
;
887+
888+

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/LocalLogicalPlanOptimizer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import org.elasticsearch.xpack.esql.optimizer.rules.logical.PropagateEmptyRelation;
1111
import org.elasticsearch.xpack.esql.optimizer.rules.logical.ReplaceStatsFilteredAggWithEval;
12-
import org.elasticsearch.xpack.esql.optimizer.rules.logical.ReplaceStringCasingWithInsensitiveRegexMatch;
1312
import org.elasticsearch.xpack.esql.optimizer.rules.logical.local.InferIsNotNull;
1413
import org.elasticsearch.xpack.esql.optimizer.rules.logical.local.InferNonNullAggConstraint;
1514
import org.elasticsearch.xpack.esql.optimizer.rules.logical.local.LocalPropagateEmptyRelation;
@@ -75,7 +74,9 @@ private static Batch<LogicalPlan> localOperators() {
7574
}
7675

7776
// add rule that should only apply locally
78-
newRules.add(new ReplaceStringCasingWithInsensitiveRegexMatch());
77+
// Disabled until Unicode CASE_INSENSITIVE support is added to Lucine 9.0
78+
// waiting on https://github.com/elastic/elasticsearch/issues/131386
79+
// newRules.add(new ReplaceStringCasingWithInsensitiveRegexMatch());
7980

8081
return operators.with(newRules.toArray(Rule[]::new));
8182
}

0 commit comments

Comments
 (0)