Skip to content

Commit 22a4c26

Browse files
committed
Fix tests with the same result scoring
1 parent 19548fa commit 22a4c26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ knnAfterKeep
102102
required_capability: knn_function
103103

104104
from colors metadata _score
105-
| keep rgb_vector, _score
105+
| keep rgb_vector, color, _score
106106
| where knn(rgb_vector, [128,128,0])
107107
| eval round_score = round(_score, 4)
108-
| sort round_score desc
108+
| sort round_score desc, color asc
109109
| keep rgb_vector, round_score
110110
| limit 5
111111
;
@@ -114,8 +114,8 @@ rgb_vector:dense_vector | round_score:double
114114
[128.0, 128.0, 0.0] | 1.0
115115
[107.0, 142.0, 35.0] | 0.0014
116116
[85.0, 107.0, 47.0] | 4.0E-4
117-
[139.0, 69.0, 19.0] | 3.0E-4
118-
[184.0, 134.0, 11.0] | 3.0E-4
117+
[184.0, 134.0, 11.0] | 3.0E-4
118+
[139.0, 69.0, 19.0] | 3.0E-4
119119
;
120120

121121
knnAfterDrop

0 commit comments

Comments
 (0)