preprocessAggregation

abstract fun preprocessAggregation(values: Sequence<Value?>, valueType: ValueType): Pair<Sequence<Value?>, KType>

Preprocesses the input values before aggregation. It's expected that this function converts values to the right valueType.kType if valueType.needsFullConversion.

Return

A pair of the preprocessed values and the (potentially new) type of the values.