Skip to content

Commit c023d56

Browse files
authored
ESQL: Fix StdDev test for NaN results (#132195) (#132248)
1 parent 547a078 commit c023d56

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/StdDevTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static TestCaseSupplier makeSupplier(TestCaseSupplier.TypedDataSupplier
6161
welfordAlgorithm.add(value);
6262
}
6363
var result = welfordAlgorithm.evaluate();
64-
var expected = Double.isInfinite(result) ? null : result;
64+
var expected = Double.isFinite(result) ? result : null;
6565
return new TestCaseSupplier.TestCase(
6666
List.of(fieldTypedData),
6767
"StdDev[field=Attribute[channel=0]]",

0 commit comments

Comments
 (0)