[refactor] add some clang-tidy checks && some code style fix (#8752)

This commit is contained in:
Pxl
2022-03-31 13:53:41 +08:00
committed by GitHub
parent 09409e4f96
commit d24735e95a
23 changed files with 282 additions and 154 deletions

View File

@ -28,14 +28,18 @@ static IAggregateFunction* createWithIntDataType(const DataTypes& argument_type)
type = assert_cast<const DataTypeNullable*>(type)->get_nested_type().get();
}
WhichDataType which(type);
if (which.idx == TypeIndex::Int8)
if (which.idx == TypeIndex::Int8) {
return new AggregateFunctionTemplate<nullable, ColumnVector<Int8>>(argument_type);
if (which.idx == TypeIndex::Int16)
}
if (which.idx == TypeIndex::Int16) {
return new AggregateFunctionTemplate<nullable, ColumnVector<Int16>>(argument_type);
if (which.idx == TypeIndex::Int32)
}
if (which.idx == TypeIndex::Int32) {
return new AggregateFunctionTemplate<nullable, ColumnVector<Int32>>(argument_type);
if (which.idx == TypeIndex::Int64)
}
if (which.idx == TypeIndex::Int64) {
return new AggregateFunctionTemplate<nullable, ColumnVector<Int64>>(argument_type);
}
return nullptr;
}