Skip to content

Commit 484511e

Browse files
committed
Lint
1 parent dbaa437 commit 484511e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/LogicalPlanBuilder.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,12 @@ public PlanFactory visitRerankCommand(EsqlBaseParser.RerankCommandContext ctx) {
581581
throw new ParsingException(source, "RERANK is in preview and only available in SNAPSHOT build");
582582
}
583583

584-
return p -> new Rerank(source, p, visitStringOrParameter(ctx.inferenceId).fold().toString(), visitStringOrParameter(ctx.queryText).fold().toString(), expression(ctx.input));
584+
return p -> new Rerank(
585+
source,
586+
p,
587+
visitStringOrParameter(ctx.inferenceId).fold().toString(),
588+
visitStringOrParameter(ctx.queryText).fold().toString(),
589+
expression(ctx.input)
590+
);
585591
}
586592
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/inference/RerankExec.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ public class RerankExec extends UnaryExec {
3232
private final String queryText;
3333
private final Expression input;
3434

35-
public RerankExec(
36-
Source source,
37-
PhysicalPlan child,
38-
String inferenceId,
39-
String queryText,
40-
Expression input
41-
) {
35+
public RerankExec(Source source, PhysicalPlan child, String inferenceId, String queryText, Expression input) {
4236
super(source, child);
4337
this.queryText = queryText;
4438
this.input = input;

0 commit comments

Comments
 (0)