diff --git a/src/AggregateFunctions/AggregateFunctionsArgMinArgMax.cpp b/src/AggregateFunctions/AggregateFunctionsArgMinArgMax.cpp index 931d2f87bad..4d3989dd2d7 100644 --- a/src/AggregateFunctions/AggregateFunctionsArgMinArgMax.cpp +++ b/src/AggregateFunctions/AggregateFunctionsArgMinArgMax.cpp @@ -258,23 +258,23 @@ IAggregateFunction * createWithTwoTypesSecond(const DataTypes & argument_types) const DataTypePtr & value_type = argument_types[1]; WhichDataType which_value(value_type); - if (which_value.idx == TypeIndex::UInt8) - { - using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; - return new AggregateFunctionArgMinMax(argument_types); - } - if (which_value.idx == TypeIndex::UInt16) - { - using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; - return new AggregateFunctionArgMinMax(argument_types); - } - if (which_value.idx == TypeIndex::UInt32) - { - using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; - return new AggregateFunctionArgMinMax(argument_types); - } - if (which_value.idx == TypeIndex::UInt64) - { + if (which_value.idx == TypeIndex::UInt8) + { + using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; + return new AggregateFunctionArgMinMax(argument_types); + } + if (which_value.idx == TypeIndex::UInt16) + { + using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; + return new AggregateFunctionArgMinMax(argument_types); + } + if (which_value.idx == TypeIndex::UInt32) + { + using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; + return new AggregateFunctionArgMinMax(argument_types); + } + if (which_value.idx == TypeIndex::UInt64) + { using Data = AggregateFunctionArgMinMaxData, SingleValueDataFixed>; return new AggregateFunctionArgMinMax(argument_types); }