Skip to content

Commit 487b10c

Browse files
committed
Checkstyle fixes
1 parent c9a67fc commit 487b10c

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3667,9 +3667,10 @@ public void testResolveRerankFields() {
36673667
{
36683668
VerificationException ve = expectThrows(
36693669
VerificationException.class,
3670-
() -> analyze(
3671-
"FROM books METADATA _score | RERANK \"italian food recipe\" ON missingField OPTIONS inferenceId=`reranking-inference-id`",
3672-
"mapping-books.json"
3670+
() -> analyze("""
3671+
FROM books METADATA _score
3672+
| RERANK \"italian food recipe\" ON missingField OPTIONS inferenceId=`reranking-inference-id`
3673+
""", "mapping-books.json"
36733674
)
36743675

36753676
);
@@ -3790,12 +3791,11 @@ public void testResolveCompletionInferenceIdResolutionError() {
37903791
}
37913792

37923793
public void testResolveCompletionTargetField() {
3793-
LogicalPlan plan = analyze(
3794-
"""
3795-
FROM books METADATA _score
3796-
| COMPLETION CONCAT("Translate the following text in French\\n", description) INTO translation OPTIONS inferenceId=`completion-inference-id`
3797-
""",
3798-
"mapping-books.json"
3794+
LogicalPlan plan = analyze("""
3795+
FROM books METADATA _score
3796+
| COMPLETION CONCAT("Translate the following text in French\\n", description) INTO translation
3797+
OPTIONS inferenceId=`completion-inference-id`
3798+
""","mapping-books.json"
37993799
);
38003800

38013801
Completion completion = as(as(plan, Limit.class).child(), Completion.class);
@@ -3835,12 +3835,11 @@ public void testResolveCompletionPromptInvalidType() {
38353835
}
38363836

38373837
public void testResolveCompletionOutputField() {
3838-
LogicalPlan plan = analyze(
3839-
"""
3840-
FROM books METADATA _score
3841-
| COMPLETION CONCAT("Translate the following text in French\\n", description) INTO description OPTIONS inferenceId=`completion-inference-id`
3842-
""",
3843-
"mapping-books.json"
3838+
LogicalPlan plan = analyze("""
3839+
FROM books METADATA _score
3840+
| COMPLETION CONCAT("Translate the following text in French\\n", description) INTO description
3841+
OPTIONS inferenceId=`completion-inference-id`
3842+
""", "mapping-books.json"
38443843
);
38453844

38463845
Completion completion = as(as(plan, Limit.class).child(), Completion.class);

0 commit comments

Comments
 (0)