Skip to content

Commit 2633b92

Browse files
committed
Fix test error
I made a mistake in a randomized test in #70653. It didn't trigger on my PRs but the intake caught it. I just misplaced a decimal place.
1 parent 9c78c00 commit 2633b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void testCoerceForFloatingPointTypes() throws IOException {
230230
// because "coerce" is true, a "123.456" floating point number STRING should be converted to 123.456 as number
231231
// and converted to 123.5 for "scaled_float" type
232232
// and 123.4375 for "half_float" because that is all it stores.
233-
double expectedNumber = isScaledFloat ? 123.5 : fieldType.equals("half_float") ? 123.4375 : 1234.56;
233+
double expectedNumber = isScaledFloat ? 123.5 : fieldType.equals("half_float") ? 123.4375 : 123.456;
234234
expected.put("rows", singletonList(singletonList(expectedNumber)));
235235
assertResponse(expected, runSql("SELECT " + fieldType + "_field FROM test"));
236236
}

0 commit comments

Comments
 (0)