Skip to content

Commit 8f38eb3

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 494f95e commit 8f38eb3

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77

88
package org.elasticsearch.xpack.esql.plugin;
99

10-
import org.elasticsearch.ElasticsearchException;
1110
import org.elasticsearch.action.index.IndexRequest;
1211
import org.elasticsearch.action.support.WriteRequest;
1312
import org.elasticsearch.common.settings.Settings;
14-
import org.elasticsearch.xpack.esql.VerificationException;
1513
import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
1614
import org.junit.Before;
1715

1816
import java.util.List;
1917

2018
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
21-
import static org.hamcrest.CoreMatchers.containsString;
2219

2320
//@TestLogging(value = "org.elasticsearch.xpack.esql:TRACE,org.elasticsearch.compute:TRACE", reason = "debug")
2421
public class ChickenScoreFunctionIT extends AbstractEsqlIntegTestCase {
@@ -40,7 +37,10 @@ public void testSimpleChickenScoreWithWhereMatch() {
4037
try (var resp = run(query)) {
4138
assertColumnNames(resp.columns(), List.of("id", "_score", "first_score"));
4239
assertColumnTypes(resp.columns(), List.of("integer", "double", "double"));
43-
assertValues(resp.values(), List.of(List.of(1, 1.156558871269226, 0.2708943784236908), List.of(6, 0.9114001989364624, 0.21347221732139587)));
40+
assertValues(
41+
resp.values(),
42+
List.of(List.of(1, 1.156558871269226, 0.2708943784236908), List.of(6, 0.9114001989364624, 0.21347221732139587))
43+
);
4444
}
4545
}
4646

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
import java.io.IOException;
2828
import java.util.List;
2929

30-
public class ChickenScore extends Function implements EvaluatorMapper {
31-
30+
public class ChickenScore extends Function implements EvaluatorMapper {
3231

3332
@FunctionInfo(
3433
returnType = "double",
@@ -38,11 +37,7 @@ public class ChickenScore extends Function implements EvaluatorMapper {
3837
)
3938
public ChickenScore(
4039
Source source,
41-
@Param(
42-
name = "query",
43-
type = { "keyword", "text" },
44-
description = "full text function."
45-
) Expression scorableQuery
40+
@Param(name = "query", type = { "keyword", "text" }, description = "full text function.") Expression scorableQuery
4641
) {
4742
this(source, List.of(scorableQuery));
4843
}
@@ -91,7 +86,8 @@ public void writeTo(StreamOutput out) throws IOException {
9186
}
9287

9388
private record ChickenScorerEvaluatorFactory(ScoreOperator.ExpressionScorer.Factory scoreFactory)
94-
implements EvalOperator.ExpressionEvaluator.Factory {
89+
implements
90+
EvalOperator.ExpressionEvaluator.Factory {
9591

9692
@Override
9793
public EvalOperator.ExpressionEvaluator get(DriverContext context) {

0 commit comments

Comments
 (0)