Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
DrillAvgVarianceConvertlet currently rewrites aggregate functions like avg, stddev, variance to simple computations.
Eg:
Stddev( x ) => power(
(sum(x * x) - sum( x ) * sum( x ) / count( x ))
/ count( x ),
.5)
Consider the case when the input is an integer. Now the rewrite contains multiplication and division, which will bind to functions that operate on integers however the expected result should be a double and since double has more precision than integer we should be operating on double during the multiplication and division.