Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.8.0
-
None
Description
Currently, the result type of AVG() is set to be the same as the input type. Instead, it should be related to the rule for divide of DECIMAL result type, since AVG() is essentially a divide of DECIMAL sum by the integral count. This will require probably some additional plumbing through the UDA interface in addition to the frontend work.
Attachments
Issue Links
- breaks
-
IMPALA-5251 DecimalAvgFinalize() gets the wrong arg type
- Resolved
- is blocked by
-
IMPALA-4879 FunctionContext::GetArgType() returns wrong type in UDA Merge() and Finalize()
- Resolved