mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
Fix style
This commit is contained in:
parent
690cb514f2
commit
b1cbb3f2de
@ -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<ResultType>, SingleValueDataFixed<UInt8>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt16)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt16>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt32)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt32>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt64)
|
||||
{
|
||||
if (which_value.idx == TypeIndex::UInt8)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt8>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt16)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt16>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt32)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt32>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
if (which_value.idx == TypeIndex::UInt64)
|
||||
{
|
||||
using Data = AggregateFunctionArgMinMaxData<SingleValueDataFixed<ResultType>, SingleValueDataFixed<UInt64>>;
|
||||
return new AggregateFunctionArgMinMax<Data, isMin>(argument_types);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user