Skip to content

Commit 59f1723

Browse files
committed
Add missing capabilities to knn csv tests.
1 parent 96068bb commit 59f1723

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ golden rod
338338

339339
testKnnWithSemanticText
340340
required_capability: knn_function_v5
341+
required_capability: semantic_text_field_caps
341342

342343
from semantic_text
343344
| where knn(semantic_text_dense_field, [0, 1, 2])
@@ -353,6 +354,7 @@ live long and prosper
353354

354355
testKnnWithSemanticTextAndKeyword
355356
required_capability: knn_function_v5
357+
required_capability: semantic_text_field_caps
356358

357359
from semantic_text
358360
| where knn(semantic_text_dense_field, [0, 1, 2])
@@ -369,6 +371,7 @@ be excellent to each other | host3
369371

370372
testKnnWithSemanticTextMultiValueField
371373
required_capability: knn_function_v5
374+
required_capability: semantic_text_field_caps
372375

373376
from semantic_text metadata _id
374377
| where match(st_multi_value, "something") AND match(host, "host1")
@@ -381,6 +384,7 @@ _id: keyword | st_multi_value:text
381384

382385
testKnnWithSemanticTextWithEvalsAndOtherFunctionsAndStats
383386
required_capability: knn_function_v5
387+
required_capability: semantic_text_field_caps
384388

385389
from semantic_text
386390
| where qstr("description:some*")
@@ -397,6 +401,7 @@ result:long
397401
testKnnWithSemanticTextAndKql
398402
required_capability: knn_function_v5
399403
required_capability: kql_function
404+
required_capability: semantic_text_field_caps
400405

401406
from semantic_text
402407
| where kql("host:host1") AND knn(semantic_text_dense_field, [0, 1, 2])

0 commit comments

Comments
 (0)