Skip to content

Commit c998b38

Browse files
committed
Fix StatementParserTests for reranking.
1 parent 4e17324 commit c998b38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,8 +3397,13 @@ public void testInvalidRerank() {
33973397
);
33983398

33993399
expectError(
3400-
"FROM foo* | RERANK \"query text\" ON title",
3401-
"line 1:42: mismatched input '<EOF>' expecting {'with', 'and', '::', ',', '.', 'or', '+', '-', '*', '/', '%'}"
3400+
"FROM foo* | RERANK \"query text\" WITH inferenceId",
3401+
"line 1:33: mismatched input 'WITH' expecting 'on'"
3402+
);
3403+
3404+
expectError(
3405+
"FROM foo* | RERANK \"query text\" ON title",
3406+
"line 1:41: mismatched input '<EOF>' expecting {'and', '::', ',', '.', 'or', 'with', '+', '-', '*', '/', '%'}"
34023407
);
34033408
}
34043409

0 commit comments

Comments
 (0)