diff --git a/x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java b/x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java index 1543ba039dc6d..319e67512c7ac 100644 --- a/x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java +++ b/x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java @@ -279,9 +279,9 @@ private Object valueMapper(CsvTestUtils.Type type, Object value) { } return values; } else if (value instanceof Double d) { - return new BigDecimal(d).round(new MathContext(10, RoundingMode.DOWN)).doubleValue(); + return new BigDecimal(d).round(new MathContext(7, RoundingMode.DOWN)).doubleValue(); } else if (value instanceof String s) { - return new BigDecimal(s).round(new MathContext(10, RoundingMode.DOWN)).doubleValue(); + return new BigDecimal(s).round(new MathContext(7, RoundingMode.DOWN)).doubleValue(); } } return value.toString();