preprocessAggregation
open override fun preprocessAggregation(values: Sequence<Number?>, valueType: ValueType): Pair<Sequence<Number?>, KType>
Preprocesses the input values before aggregation.
If
ValueType.kTypeis a primitive number type andValueType.needsFullConversion, then the values are converted toValueType.kType.If
ValueType.kTypeis given asNumber(?), then we first calculate the unified type and convert to that. This is heavy and should be avoided if possible.
Throws
if the input type is not Number(?) or a primitive number type.