From e00b28e2a32a1e4becab7d04166bf89ba666a484 Mon Sep 17 00:00:00 2001 From: Alexander Spies Date: Wed, 14 May 2025 08:21:28 +0200 Subject: [PATCH] Round in stats test for docs (#128048) In Serverless tests, we sometimes hit rounding errors because even single node tests are executed on 3 nodes there. Rounding makes this test deterministic. --- .../esql/qa/testFixtures/src/main/resources/stats.csv-spec | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec index 86dbf4734da0..11853b5c6180 100644 --- a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec +++ b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec @@ -1428,6 +1428,7 @@ docsStatsSumNestedExpression#[skip:-8.12.99,reason:supported in 8.13+] FROM employees | STATS total_salary_changes = SUM(MV_MAX(salary_change)) // end::docsStatsSumNestedExpression[] +| EVAL total_salary_changes = ROUND(total_salary_changes, 2) ; // tag::docsStatsSumNestedExpression-result[]