Skip to content

Commit 2931121

Browse files
author
elasticsearchmachine
committed
Add capability for bwc
1 parent d61c146 commit 2931121

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ azure | [240.0, 255.0, 255.0]
226226

227227
knnWithNonPushableConjunction
228228
required_capability: knn_function_v5
229+
required_capability: knn_function_options_k_visit_percentage
229230

230231
from colors metadata _score
231232
| eval composed_name = locate(color, " ") > 0

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,10 @@ public enum Cap {
16921692
*/
16931693
TIME_SERIES_WINDOW_V0,
16941694

1695+
/**
1696+
* KNN function adds support for k and visit_percentage options
1697+
*/
1698+
KNN_FUNCTION_OPTIONS_K_VISIT_PERCENTAGE,
16951699
// Last capability should still have a comma for fewer merge conflicts when adding new ones :)
16961700
// This comment prevents the semicolon from being on the previous capability when Spotless formats the file.
16971701
;

0 commit comments

Comments
 (0)