Fixed style issues

This commit is contained in:
Maksim Kita 2020-12-13 14:38:56 +03:00
parent 5ae1652d51
commit 5d6036e9c8
3 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;