Skip to content

Commit f262839

Browse files
authored
ESQL: Add capability to prevent failing mixed tests after Starts/EndsWith Lucene pushdown (#124764)
Continuation of #124641, after different issues arised. Closes #124693 Closes #124745 The failing BWC tests are checking <8.14 mixed cluster nodes, and SingleValueQuery is sometimes emitting warnings with an empty source.
1 parent 361b51d commit f262839

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,7 @@ beta | Kubernetes cluster
981981
;
982982

983983
startsWithLucenePushdownIgnoreMultivalues
984+
required_capability: starts_with_ends_with_lucene_pushdown
984985

985986
from hosts
986987
| where starts_with(description, "epsilon")
@@ -1266,6 +1267,7 @@ beta | Kubernetes cluster
12661267
;
12671268

12681269
endsWithLucenePushdownIgnoreMultivalues
1270+
required_capability: starts_with_ends_with_lucene_pushdown
12691271

12701272
from hosts
12711273
| where ends_with(description, "host")

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,12 @@ public enum Cap {
872872
*/
873873
RRF(Build.current().isSnapshot()),
874874

875+
/**
876+
* Lucene query pushdown to StartsWith and EndsWith functions.
877+
* This capability was created to avoid receiving wrong warnings from old nodes in mixed clusters
878+
*/
879+
STARTS_WITH_ENDS_WITH_LUCENE_PUSHDOWN,
880+
875881
/**
876882
* Full text functions can be scored when being part of a disjunction
877883
*/

0 commit comments

Comments
 (0)