Description
Currently,when the avg input is int type,the return type is int type, but the correct type is float
RelDataTypeSystemImpl
// code placeholder @Override public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory, RelDataType argumentType) { return argumentType; }
Attachments
Issue Links
- duplicates
-
CALCITE-1945 Allow custom return types for AVG/VARIANCE/STDDEV/COVAR
- Closed