Skip to content

Commit 47b91f5

Browse files
committed
Add LIMIT to avoid multi cluster test failures
1 parent 78aa6d0 commit 47b91f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from colors metadata _score
1111
| sort _score desc, color asc
1212
// end::knn-function[]
1313
| keep color, rgb_vector
14+
| limit 10
1415
;
1516

1617
// tag::knn-function-result[]
@@ -174,6 +175,7 @@ from colors metadata _score
174175
| where knn(rgb_vector, [255,255,238], {"k": 140}) and hex_code like "#FFF*"
175176
| sort _score desc, color asc
176177
| keep color, hex_code, rgb_vector
178+
| limit 10
177179
;
178180
ignoreOrder:true
179181

0 commit comments

Comments
 (0)