Skip to content

Commit 248f074

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

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
@@ -991,6 +991,7 @@ beta | Kubernetes cluster
991991
;
992992

993993
startsWithLucenePushdownIgnoreMultivalues
994+
required_capability: starts_with_ends_with_lucene_pushdown
994995

995996
from hosts
996997
| where starts_with(description, "epsilon")
@@ -1259,6 +1260,7 @@ beta | Kubernetes cluster
12591260
;
12601261

12611262
endsWithLucenePushdownIgnoreMultivalues
1263+
required_capability: starts_with_ends_with_lucene_pushdown
12621264

12631265
from hosts
12641266
| 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
@@ -676,6 +676,12 @@ public enum Cap {
676676
*/
677677
REMOVE_REDUNDANT_SORT,
678678

679+
/**
680+
* Lucene query pushdown to StartsWith and EndsWith functions.
681+
* This capability was created to avoid receiving wrong warnings from old nodes in mixed clusters
682+
*/
683+
STARTS_WITH_ENDS_WITH_LUCENE_PUSHDOWN,
684+
679685
/**
680686
* Allow mixed numeric types in conditional functions - case, greatest and least
681687
*/

0 commit comments

Comments
 (0)