vvysotskyi commented on issue #1453: DRILL-6710: Disallow negative scale for decimal data type URL: https://github.com/apache/drill/pull/1453#issuecomment-417416127 With the change in this PR, if aggregate functions: - `AVG` - `STDDEV_POP` - `STDDEV_SAMP` - `VAR_POP` - `VAR_SAMP` are applied to the decimal column without cast may fail if any of the intermediate calculations for them (all of them may be rewritten using `SUM` and `COUNT` aggregate functions) exceeds max allowed numeric precision. For the case, when planner knows that this column is decimal (for example, cast to decimal is used inside agg function), they wouldn't be rewritten and exact implementation will be used.
---------------------------------------------------------------- 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
