Skip to content

Commit 5350252

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent b8f315b commit 5350252

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvPSeriesWeightedSumTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ private static TestCaseSupplier.TestCase testCase(List<Double> field, double p)
9797
Double.isFinite(expectedResult) ? closeTo(expectedResult, Math.abs(expectedResult * .00000001)) : nullValue()
9898
);
9999
if (Double.isFinite(expectedResult) == false) {
100-
return testCase.withWarning("Line 1:1: evaluation of [source] failed, treating result as null. Only first 20 failures recorded.")
101-
.withWarning("Line 1:1: java.lang.ArithmeticException: double overflow");
100+
return testCase.withWarning(
101+
"Line 1:1: evaluation of [source] failed, treating result as null. Only first 20 failures recorded."
102+
).withWarning("Line 1:1: java.lang.ArithmeticException: double overflow");
102103
}
103104
return testCase;
104105
}

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvPercentileTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ public static Iterable<Object[]> parameters() {
324324
evaluatorString(fieldType, percentileType),
325325
fieldType,
326326
nullValue()
327-
).withWarning("Line 1:1: evaluation of [source] failed, treating result as null. Only first 20 failures recorded.")
327+
).withWarning(
328+
"Line 1:1: evaluation of [source] failed, treating result as null. Only first 20 failures recorded."
329+
)
328330
.withWarning(
329331
"Line 1:1: java.lang.IllegalArgumentException: Percentile parameter must be "
330332
+ "a number between 0 and 100, found ["

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/HashTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ public static Iterable<Object[]> parameters() {
5555
is(nullValue())
5656
).withWarning("Line 1:1: evaluation of [source] failed, treating result as null. Only first 20 failures recorded.")
5757
.withWarning("Line 1:1: java.security.NoSuchAlgorithmException: invalid MessageDigest not available")
58-
.withFoldingException(InvalidArgumentException.class, "invalid algorithm for [source]: invalid MessageDigest not available");
58+
.withFoldingException(
59+
InvalidArgumentException.class,
60+
"invalid algorithm for [source]: invalid MessageDigest not available"
61+
);
5962
}));
6063
return parameterSuppliersFromTypedDataWithDefaultChecksNoErrors(true, cases);
6164
}

0 commit comments

Comments
 (0)