Details
Description
We have Map/Reduce and Collocated algorithms of implementations for calculation average values.
At least for the DECIMAL type we have different implementations which can produce different precision/scale of results and value of results.
We need to do the following:
1) Check implementations of AVG for all types and align them, including resolving types of results.
2) The result type of AVG in the plan and the real result type after execution should be identical.
Points to start investigate:
- ItAggregatesTest
- AccumulatorsFactory
- IgniteSqlFunctions#decimalDivide
- MapReduceAggregates#createAvgAgg
Attachments
Issue Links
- Blocked
-
IGNITE-23023 Sql. Improve result type for AVG function for NUMERIC types
- Resolved
- links to