1 | #include <AggregateFunctions/AggregateFunctionCombinatorFactory.h> |
---|---|
2 | #include <Storages/System/StorageSystemAggregateFunctionCombinators.h> |
3 | |
4 | namespace DB |
5 | { |
6 | |
7 | NamesAndTypesList StorageSystemAggregateFunctionCombinators::getNamesAndTypes() |
8 | { |
9 | return { |
10 | {"name", std::make_shared<DataTypeString>()}, |
11 | {"is_internal", std::make_shared<DataTypeUInt8>()}, |
12 | }; |
13 | } |
14 | |
15 | void StorageSystemAggregateFunctionCombinators::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const |
16 | { |
17 | const auto & combinators = AggregateFunctionCombinatorFactory::instance().getAllAggregateFunctionCombinators(); |
18 | for (const auto & pair : combinators) |
19 | { |
20 | res_columns[0]->insert(pair.first); |
21 | res_columns[1]->insert(pair.second->isForInternalUsageOnly()); |
22 | } |
23 | } |
24 | |
25 | } |
26 |