Skip to content

Commit 26139e1

Browse files
committed
Add capability for bwc tests
1 parent 6fbbc12 commit 26139e1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ emp_no:integer |first_name:keyword
426426

427427
# test for https://github.com/elastic/elasticsearch/issues/128813
428428
rlikeWithEmptyLanguagePattern
429+
required_capability: rlike_with_empty_language_pattern
429430
ROW x = "abc" | EVAL bool = x RLIKE "#"
430431
;
431432

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,12 @@ public enum Cap {
11641164
/**
11651165
* Enable support for index aliases in lookup joins
11661166
*/
1167-
ENABLE_LOOKUP_JOIN_ON_ALIASES(JOIN_LOOKUP_V12.isEnabled());
1167+
ENABLE_LOOKUP_JOIN_ON_ALIASES(JOIN_LOOKUP_V12.isEnabled()),
1168+
1169+
/**
1170+
* Allows RLIKE to correctly handle the "empty language" flag, `#`.
1171+
*/
1172+
RLIKE_WITH_EMPTY_LANGUAGE_PATTERN;
11681173

11691174
private final boolean enabled;
11701175

0 commit comments

Comments
 (0)