Skip to content

Commit 02b33e5

Browse files
committed
Don't generate huge scaling_factor in FieldExtractorIT#testScaledFloat
1 parent af364a4 commit 02b33e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/FieldExtractorTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public void testFloat() throws IOException {
223223
public void testScaledFloat() throws IOException {
224224
double value = randomBoolean() ? randomDoubleBetween(-Double.MAX_VALUE, Double.MAX_VALUE, true) : randomFloat();
225225
// Scale factors less than about 5.6e-309 will result in NaN (due to 1/scaleFactor being infinity)
226-
double scalingFactor = randomDoubleBetween(1e-308, Double.MAX_VALUE, false);
226+
double scalingFactor = randomDoubleBetween(1e-308, Float.MAX_VALUE, false);
227227
new Test("scaled_float").expectedType("double")
228228
.randomIgnoreMalformedUnlessSynthetic()
229229
.randomDocValuesUnlessSynthetic()

0 commit comments

Comments
 (0)