mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fixed style issues
This commit is contained in:
parent
5ae1652d51
commit
5d6036e9c8
@ -25,7 +25,7 @@ enum class AggregateOperation
|
||||
};
|
||||
|
||||
/**
|
||||
* During array aggregation we derive result type from operation.
|
||||
* During array aggregation we derive result type from operation.
|
||||
* For array min or array max we use arryy element as result type.
|
||||
* For array average if element is decimal we use decimal type, for other numeric types we use Float64.
|
||||
* For array sum for decimal numbers we use Decimal128, for floating point numbers Float64, for numeric unsigned Int64,
|
||||
@ -79,7 +79,8 @@ struct ArrayAggregateImpl
|
||||
{
|
||||
DataTypePtr result;
|
||||
|
||||
auto call = [&](const auto & types) {
|
||||
auto call = [&](const auto & types)
|
||||
{
|
||||
using Types = std::decay_t<decltype(types)>;
|
||||
using DataType = typename Types::LeftType;
|
||||
|
||||
|
@ -120,6 +120,7 @@ SRCS(
|
||||
appendTrailingCharIfAbsent.cpp
|
||||
array/array.cpp
|
||||
array/arrayAUC.cpp
|
||||
array/arrayAggregation.cpp
|
||||
array/arrayAll.cpp
|
||||
array/arrayCompact.cpp
|
||||
array/arrayConcat.cpp
|
||||
@ -155,7 +156,6 @@ SRCS(
|
||||
array/arraySlice.cpp
|
||||
array/arraySort.cpp
|
||||
array/arraySplit.cpp
|
||||
array/arraySum.cpp
|
||||
array/arrayUniq.cpp
|
||||
array/arrayWithConstant.cpp
|
||||
array/arrayZip.cpp
|
||||
|
@ -32,4 +32,4 @@ SELECT arraySum(x) FROM test_aggregation;
|
||||
SELECT 'Table array decimal avg';
|
||||
SELECT arrayAvg(x) FROM test_aggregation;
|
||||
|
||||
DROP TABLE test_aggregation;
|
||||
DROP TABLE test_aggregation;
|
||||
|
Loading…
Reference in New Issue
Block a user