Skip to content

Commit b810ca6

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 6931643 commit b810ca6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,13 +2195,10 @@ public void testKnnWithExplicitLimit() {
21952195
var fieldExtractExec2 = as(topNExec2.child(), FieldExtractExec.class);
21962196
var queryExec = as(fieldExtractExec2.child(), EsQueryExec.class);
21972197
assertNull(queryExec.limit());
2198-
var expectedQuery = boolQuery()
2199-
.must(
2200-
boolQuery()
2201-
.should(new KnnVectorQueryBuilder("dense_vector", new float[] { 0f, 1f, 2f }, 140, null, null, null))
2202-
.should(new KnnVectorQueryBuilder("dense_vector", new float[] { 1f, 2f, 3f }, 140, null, null, null))
2203-
)
2204-
.must(matchQuery("text", "blue").lenient(true));
2198+
var expectedQuery = boolQuery().must(
2199+
boolQuery().should(new KnnVectorQueryBuilder("dense_vector", new float[] { 0f, 1f, 2f }, 140, null, null, null))
2200+
.should(new KnnVectorQueryBuilder("dense_vector", new float[] { 1f, 2f, 3f }, 140, null, null, null))
2201+
).must(matchQuery("text", "blue").lenient(true));
22052202
assertEquals(expectedQuery.toString(), queryExec.query().toString());
22062203
}
22072204

0 commit comments

Comments
 (0)