2018-07-20 10:00:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-23 16:10:57 +00:00
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
|
|
#include <DataTypes/DataTypesNumber.h>
|
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
2018-07-20 10:00:56 +00:00
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class StorageSystemAggregateFunctionCombinators : public ext::shared_ptr_helper<StorageSystemAggregateFunctionCombinators>,
|
2018-07-23 16:10:57 +00:00
|
|
|
public IStorageSystemOneBlock<StorageSystemAggregateFunctionCombinators>
|
2018-07-20 10:00:56 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
void fillData(MutableColumns & res_columns) const override;
|
|
|
|
|
|
|
|
public:
|
2018-07-23 16:10:57 +00:00
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
2018-07-20 10:00:56 +00:00
|
|
|
|
|
|
|
std::string getName() const override
|
|
|
|
{
|
|
|
|
return "SystemAggregateFunctionCombinators";
|
|
|
|
}
|
|
|
|
|
2018-07-23 16:10:57 +00:00
|
|
|
static NamesAndTypesList getNamesAndTypes()
|
2018-07-20 10:00:56 +00:00
|
|
|
{
|
2018-07-23 16:10:57 +00:00
|
|
|
return {
|
|
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
|
|
{"is_internal", std::make_shared<DataTypeUInt8>()},
|
|
|
|
};
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|