Skip to content

Commit e36156c

Browse files
committed
Fix old syntax in comments.
1 parent ea4e766 commit e36156c

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/optimizer/LogicalPlanOptimizerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5524,7 +5524,7 @@ record PushdownShadowingGeneratingPlanTestCase(
55245524
),
55255525
new PushDownInferencePlan()
55265526
),
5527-
// | RERANK "some text" ON x INTO y OPTIONS { "inference_id" : "inferenceID" }
5527+
// | RERANK "some text" ON x INTO y WITH { "inference_id" : "inferenceID" }
55285528
new PushdownShadowingGeneratingPlanTestCase(
55295529
(plan, attr) -> new Rerank(
55305530
EMPTY,

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushDownAndCombineFiltersTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ public void testPushDownFilterPastCompletion() {
287287
assertEquals(expectedOptimizedPlan, new PushDownAndCombineFilters().apply(filterB));
288288
}
289289

290-
// from ... | where a > 1 | RERANK "query" ON title OPTIONS { "inference_id" : "inferenceId" } | where b < 2 and _score > 1
291-
// => ... | where a > 1 AND b < 2| RERANK "query" ON title OPTIONS { "inference_id" : "inferenceId" } | where _score > 1
290+
// from ... | where a > 1 | RERANK "query" ON title WITH { "inference_id" : "inferenceId" } | where b < 2 and _score > 1
291+
// => ... | where a > 1 AND b < 2| RERANK "query" ON title WITH { "inference_id" : "inferenceId" } | where _score > 1
292292
public void testPushDownFilterPastRerank() {
293293
FieldAttribute a = getFieldAttribute("a");
294294
FieldAttribute b = getFieldAttribute("b");

0 commit comments

Comments
 (0)