[Bug](decimalv3) Fix wrong argument for min_by/max_by (#15153)

This commit is contained in:
Gabriel
2022-12-19 10:15:28 +08:00
committed by GitHub
parent 1ed5ad3a16
commit 0b6054a4ce

View File

@ -111,12 +111,12 @@ static IAggregateFunction* create_aggregate_function_min_max_by(const String& na
}
if (which.idx == TypeIndex::Decimal32) {
return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
SingleValueDataFixed<Int32>>(
SingleValueDataDecimal<Decimal32>>(
argument_types);
}
if (which.idx == TypeIndex::Decimal64) {
return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
SingleValueDataFixed<Int64>>(
SingleValueDataDecimal<Decimal64>>(
argument_types);
}
if (which.idx == TypeIndex::Decimal128I) {