Thanks for the review!

Currently, such behavior of aggregate functions cannot be fixed because Drill 
does not know the input type of the function and rewrites it using `SUM` and 
`COUNT` aggregate functions. For regular types, it is ok, since results of 
these intermediate agg calls may be reused, but for decimals due to type 
inference rules, intermediate calculations on the results of agg calls may 
cause overflow.

[ Full content available at: https://github.com/apache/drill/pull/1453 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to