vvysotskyi commented on issue #1453: DRILL-6710: Disallow negative scale for decimal data type URL: https://github.com/apache/drill/pull/1453#issuecomment-417605255 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.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
