2018-07-20 10:00:56 +00:00
|
|
|
#include <AggregateFunctions/AggregateFunctionCombinatorFactory.h>
|
|
|
|
#include <Storages/System/StorageSystemAggregateFunctionCombinators.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-07-24 14:28:56 +00:00
|
|
|
|
|
|
|
NamesAndTypesList StorageSystemAggregateFunctionCombinators::getNamesAndTypes()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
|
|
{"is_internal", std::make_shared<DataTypeUInt8>()},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
void StorageSystemAggregateFunctionCombinators::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const
|
2018-07-20 10:00:56 +00:00
|
|
|
{
|
|
|
|
const auto & combinators = AggregateFunctionCombinatorFactory::instance().getAllAggregateFunctionCombinators();
|
|
|
|
for (const auto & pair : combinators)
|
|
|
|
{
|
|
|
|
res_columns[0]->insert(pair.first);
|
2018-10-22 08:54:54 +00:00
|
|
|
res_columns[1]->insert(pair.second->isForInternalUsageOnly());
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-24 14:28:56 +00:00
|
|
|
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|