Skip to content

Commit 03a329a

Browse files
committed
Fix some tests for multiple shards
1 parent eacb9a0 commit 03a329a

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

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

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,11 @@ required_capability: knn_function
276276

277277
from colors
278278
| where length(color) < 10
279-
| stats c = count(*) where knn(rgb_vector, [128,128,255], {"k": 40})
279+
| stats c = count(*) where knn(rgb_vector, [128,128,255], {"k": 140})
280280
;
281281

282282
c: long
283-
11
283+
59
284284
;
285285

286286

@@ -289,22 +289,22 @@ required_capability: knn_function
289289
required_capability: full_text_functions_in_stats_where
290290

291291
from colors metadata _score
292-
| stats c = count(*) where (knn(rgb_vector, [0,255,255], {"k": 40}) or knn(rgb_vector, [0, 0, 255])) and knn(rgb_vector, [0, 255, 0], {"k": 40})
292+
| stats c = count(*) where (knn(rgb_vector, [0,255,255], {"k": 140}) or knn(rgb_vector, [0, 0, 255])) and knn(rgb_vector, [0, 255, 0], {"k": 40})
293293
;
294294

295295
c:long
296-
21
296+
40
297297
;
298298

299299
testKnnInStatsWithGrouping
300300
from colors
301301
| where length(color) < 10
302-
| stats c = count(*) where knn(rgb_vector, [128,128,255], {"k": 40}) by primary
302+
| stats c = count(*) where knn(rgb_vector, [128,128,255], {"k": 140}) by primary
303303
;
304304

305305
c: long | primary: boolean
306-
9 | false
307-
2 | true
306+
50 | false
307+
9 | true
308308
;
309309

310310
testKnnInStatsPushable
@@ -319,16 +319,3 @@ from colors
319319
c:long
320320
40
321321
;
322-
323-
testKnnInStatsWithNonPushableDisjunctions
324-
required_capability: knn_function
325-
required_capability: full_text_functions_in_stats_where
326-
327-
FROM colors
328-
| STATS c = count(*) where knn(rgb_vector, [128,128,0], {"k": 5}) or length(color) > 17
329-
;
330-
331-
c:long
332-
8
333-
;
334-

0 commit comments

Comments
 (0)