Details
-
Sub-Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
2020-1, 2020-2, 2020-3, 2020-4, 2020-5, 2020-6, 2020-7, 2021-1, 2021-2, 2021-3, 2021-4, 2021-5, 2021-6, 2021-7, 2021-8, 2021-9
Description
Consider the scenario:
CREATE TABLE cs5(d DECIMAL(25,19)) ENGINE=columnstore;
|
INSERT INTO cs5 VALUES (1),(0.1),(0.05),(0.05),(0.05),(0.05),(0.2),(0.154),(0.1),(0.05),(0.05);
|
SELECT avg(d) FROM cs5;
|
The expected result is:
avg(d)
|
0.16854545454545454545455
|
however MCS doesn't round the last digit properly
avg(d)
|
0.16854545454545454545454
|