mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-06 00:20:51 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
801 B
C++
26 lines
801 B
C++
#include <AggregateFunctions/AggregateFunctionCombinatorFactory.h>
|
|
#include <Storages/System/StorageSystemAggregateFunctionCombinators.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
NamesAndTypesList StorageSystemAggregateFunctionCombinators::getNamesAndTypes()
|
|
{
|
|
return {
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
{"is_internal", std::make_shared<DataTypeUInt8>()},
|
|
};
|
|
}
|
|
|
|
void StorageSystemAggregateFunctionCombinators::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
|
{
|
|
const auto & combinators = AggregateFunctionCombinatorFactory::instance().getAllAggregateFunctionCombinators();
|
|
for (const auto & pair : combinators)
|
|
{
|
|
res_columns[0]->insert(pair.first);
|
|
res_columns[1]->insert(pair.second->isForInternalUsageOnly());
|
|
}
|
|
}
|
|
|
|
}
|