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.

[ 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