diff --git a/src/Columns/ColumnAggregateFunction.cpp b/src/Columns/ColumnAggregateFunction.cpp index 7533d2cb71b..f7e6b1a1ccc 100644 --- a/src/Columns/ColumnAggregateFunction.cpp +++ b/src/Columns/ColumnAggregateFunction.cpp @@ -1,5 +1,6 @@ #include +#include #include #include #include @@ -110,6 +111,11 @@ ConstArenas concatArenas(const ConstArenas & array, ConstArenaPtr arena) } +std::string ColumnAggregateFunction::getName() const +{ + return "AggregateFunction(" + func->getName() + ")"; +} + MutableColumnPtr ColumnAggregateFunction::convertToValues(MutableColumnPtr column) { /** If the aggregate function returns an unfinalized/unfinished state, diff --git a/src/Columns/ColumnAggregateFunction.h b/src/Columns/ColumnAggregateFunction.h index ba33cf0ee14..3c836f50bdf 100644 --- a/src/Columns/ColumnAggregateFunction.h +++ b/src/Columns/ColumnAggregateFunction.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include #include @@ -19,6 +18,16 @@ using ArenaPtr = std::shared_ptr; using ConstArenaPtr = std::shared_ptr; using ConstArenas = std::vector; +using AggregateDataPtr = char *; +using AggregateDataPtrs = std::vector; +using ConstAggregateDataPtr = const char *; + +class IAggregateFunction; +using AggregateFunctionPtr = std::shared_ptr; + +class Context; +using ContextPtr = std::shared_ptr; + /** Column of states of aggregate functions. * Presented as an array of pointers to the states of aggregate functions (data). @@ -114,7 +123,7 @@ public: /// This method is made static and receive MutableColumnPtr object to explicitly destroy it. static MutableColumnPtr convertToValues(MutableColumnPtr column); - std::string getName() const override { return "AggregateFunction(" + func->getName() + ")"; } + std::string getName() const override; const char * getFamilyName() const override { return "AggregateFunction"; } TypeIndex getDataType() const override { return TypeIndex::AggregateFunction; } diff --git a/src/Columns/ColumnObject.h b/src/Columns/ColumnObject.h index af12b99efcb..e2936b27994 100644 --- a/src/Columns/ColumnObject.h +++ b/src/Columns/ColumnObject.h @@ -3,7 +3,6 @@ #include #include #include -#include #include #include diff --git a/src/Core/Block.cpp b/src/Core/Block.cpp index dfd60b994f4..77dbad5443e 100644 --- a/src/Core/Block.cpp +++ b/src/Core/Block.cpp @@ -1,19 +1,17 @@ -#include -#include - -#include - -#include -#include - -#include - +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include #include -#include + #include