Skip to content

Commit 68ec878

Browse files
committed
Some tests make no sense as we're not deduplicating
1 parent 52f057b commit 68ec878

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

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

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ required_capability: knn_function
7070

7171
from colors metadata _score
7272
| where match(color, "violet") or knn(rgb_vector, [238,130,238], {"boost": 10.0, "k": 140})
73-
| sort _score desc
73+
| sort _score desc, color asc
7474
| keep color, rgb_vector
7575
| limit 10
7676
;
@@ -93,7 +93,7 @@ required_capability: knn_function
9393

9494
from colors metadata _score
9595
| where knn(rgb_vector, [128,128,0], {"k": 140}) and match(color, "olive")
96-
| sort _score desc
96+
| sort _score desc, color asc
9797
| keep color, rgb_vector
9898
;
9999

@@ -259,7 +259,7 @@ required_capability: knn_function
259259

260260
from colors metadata _score
261261
| where (knn(rgb_vector, [128,128,0], {"k": 140, "similarity": 40}) and length(color) > 5) or (knn(rgb_vector, [128,0,128], {"k": 140, "similarity": 40}) and primary == false)
262-
| sort _score desc
262+
| sort _score desc, color asc
263263
| keep color, primary
264264
;
265265

@@ -280,18 +280,6 @@ c: long
280280
59
281281
;
282282

283-
testKnnInStatsPushableAndNonPushable
284-
required_capability: knn_function
285-
required_capability: full_text_functions_in_stats_where
286-
287-
from colors metadata _score
288-
| 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})
289-
;
290-
291-
c:long
292-
40
293-
;
294-
295283
testKnnInStatsWithGrouping
296284
required_capability: knn_function
297285
required_capability: full_text_functions_in_stats_where
@@ -305,16 +293,3 @@ c: long | primary: boolean
305293
50 | false
306294
9 | true
307295
;
308-
309-
testKnnInStatsPushable
310-
required_capability: knn_function
311-
required_capability: full_text_functions_in_stats_where
312-
313-
from colors
314-
| stats c = count(*) where knn(rgb_vector, [128,128,255], {"k": 40})
315-
;
316-
317-
# No surprises, gets the number of top k
318-
c:long
319-
40
320-
;

0 commit comments

Comments
 (0)