Skip to content

Commit 994c9de

Browse files
committed
spotless
1 parent 880ec89 commit 994c9de

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/ScoreFunctionIT.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ public void testAlternativeWhereMatch() {
5656
try (var resp = run(query)) {
5757
assertColumnNames(resp.columns(), List.of("id", "_score"));
5858
assertColumnTypes(resp.columns(), List.of("integer", "double"));
59-
assertValues(resp.values(), List.of(
60-
List.of(1, 1.4274532794952393),
61-
List.of(6, 1.1248724460601807))
62-
);
59+
assertValues(resp.values(), List.of(List.of(1, 1.4274532794952393), List.of(6, 1.1248724460601807)));
6360
}
6461
}
6562

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
import org.elasticsearch.xpack.esql.expression.function.aggregate.Top;
4141
import org.elasticsearch.xpack.esql.expression.function.aggregate.Values;
4242
import org.elasticsearch.xpack.esql.expression.function.aggregate.WeightedAvg;
43-
import org.elasticsearch.xpack.esql.expression.function.fulltext.ScoreFunction;
4443
import org.elasticsearch.xpack.esql.expression.function.fulltext.Kql;
4544
import org.elasticsearch.xpack.esql.expression.function.fulltext.Match;
4645
import org.elasticsearch.xpack.esql.expression.function.fulltext.MultiMatch;
4746
import org.elasticsearch.xpack.esql.expression.function.fulltext.QueryString;
47+
import org.elasticsearch.xpack.esql.expression.function.fulltext.ScoreFunction;
4848
import org.elasticsearch.xpack.esql.expression.function.fulltext.Term;
4949
import org.elasticsearch.xpack.esql.expression.function.grouping.Bucket;
5050
import org.elasticsearch.xpack.esql.expression.function.grouping.Categorize;

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/FullTextFunction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ private static void checkFullTextQueryFunctions(LogicalPlan plan, Failures failu
233233
// TODO : improve this check, as this is not 100% accurate
234234
AtomicInteger scoredFullTextFunctions = new AtomicInteger();
235235
plan.forEachExpression(ScoreFunction.class, scoreFunction -> {
236-
plan.forEachExpression(FullTextFunction.class, ftf -> {
237-
scoredFullTextFunctions.getAndIncrement();
238-
});
236+
plan.forEachExpression(FullTextFunction.class, ftf -> { scoredFullTextFunctions.getAndIncrement(); });
239237
});
240238
if (scoredFullTextFunctions.get() == 0) {
241239
plan.forEachExpression(FullTextFunction.class, ftf -> {
242-
failures.add(fail(ftf, "[{}] {} is only supported in WHERE and STATS commands", ftf.functionName(), ftf.functionType()));
240+
failures.add(
241+
fail(ftf, "[{}] {} is only supported in WHERE and STATS commands", ftf.functionName(), ftf.functionType())
242+
);
243243
});
244244
}
245245
}

0 commit comments

Comments
 (0)