Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions pinot-query-runtime/src/test/resources/queries/Aggregates.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down