Skip to content

Commit 6a3d6f7

Browse files
committed
Fix tests
1 parent 0e9f2e6 commit 6a3d6f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ public void testDenseVectorImplicitCasting() {
23762376
Analyzer analyzer = analyzer(loadMapping("mapping-dense_vector.json", "vectors"));
23772377

23782378
var plan = analyze("""
2379-
from test | where knn(vector, [0.342, 0.164, 0.234])
2379+
from test | where knn(vector, [0.342, 0.164, 0.234], 10)
23802380
""", "mapping-dense_vector.json");
23812381

23822382
var limit = as(plan, Limit.class);

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LocalPhysicalPlanOptimizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,8 @@ public void testKnnOptionsPushDown() {
13671367

13681368
String query = """
13691369
from test
1370-
| where KNN(dense_vector, [0.1, 0.2, 0.3],
1371-
{ "k": 5, "similarity": 0.001, "num_candidates": 10, "rescore_oversample": 7, "boost": 3.5 })
1370+
| where KNN(dense_vector, [0.1, 0.2, 0.3], 5,
1371+
{ "similarity": 0.001, "num_candidates": 10, "rescore_oversample": 7, "boost": 3.5 })
13721372
""";
13731373
var analyzer = makeAnalyzer("mapping-all-types.json");
13741374
var plan = plannerOptimizer.plan(query, IS_SV_STATS, analyzer);

0 commit comments

Comments
 (0)