diff --git a/pinot-query-runtime/src/test/resources/queries/Aggregates.json b/pinot-query-runtime/src/test/resources/queries/Aggregates.json index b82be2cb5e37..cdfe79af4ac1 100644 --- a/pinot-query-runtime/src/test/resources/queries/Aggregates.json +++ b/pinot-query-runtime/src/test/resources/queries/Aggregates.json @@ -21,11 +21,10 @@ }, "queries": [ { - "ignored": true, "psql": "4.2.7", - "comments": "result error:average doesn't work because we round up but h2 round down for integer", + "comments": ":we round up but h2 round down for integer, to work around this we divide by 2", "description": "average int", - "sql": "SELECT avg(int_col) FROM {tbl}" + "sql": "SELECT avg(int_col) / 2 FROM {tbl}" }, { "psql": "4.2.7", @@ -173,10 +172,9 @@ }, { "psql": "4.2.7", - "ignored": true, "description": "aggregate int column and filter by int column", - "comments": "rounding error", - "sql": "SELECT sum(1 /int_col) FROM {tbl} WHERE int_col > 0" + "comments": "divide result by 2 to avoid rounding error", + "sql": "SELECT sum(1 /int_col) / 2 FROM {tbl} WHERE int_col > 0" }, { "psql": "4.2.7",