Skip to content

Commit 9fa0fd6

Browse files
committed
Fix tests
1 parent e55ff48 commit 9fa0fd6

File tree

1 file changed

+3
-2
lines changed
  • x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin

1 file changed

+3
-2
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/KnnFunctionIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ public void testKnnOptions() {
114114

115115
var query = String.format(Locale.ROOT, """
116116
FROM test METADATA _score
117-
| WHERE knn(vector, %s, 5)
117+
| WHERE knn(vector, %s)
118118
| KEEP id, _score, vector
119119
| SORT _score DESC
120+
| LIMIT 5
120121
""", Arrays.toString(queryVector));
121122

122123
try (var resp = run(query)) {
@@ -137,7 +138,7 @@ public void testKnnNonPushedDown() {
137138
| WHERE knn(vector, %s) OR id > 100
138139
| KEEP id, _score, vector
139140
| SORT _score DESC
140-
| LIMIT 10
141+
| LIMIT 5
141142
""", Arrays.toString(queryVector));
142143

143144
try (var resp = run(query)) {

0 commit comments

Comments
 (0)