diff options
author | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-14 09:58:56 +0300 |
---|---|---|
committer | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-14 10:20:20 +0300 |
commit | c2b2dfd9827a400a8495e172a56343462e3ceb82 (patch) | |
tree | cd4e4f597d01bede4c82dffeb2d780d0a9046bd0 /contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h | |
parent | d4ae8f119e67808cb0cf776ba6e0cf95296f2df7 (diff) | |
download | ydb-c2b2dfd9827a400a8495e172a56343462e3ceb82.tar.gz |
YQ Connector: move tests from yql to ydb (OSS)
Перенос папки с тестами на Коннектор из папки yql в папку ydb (синхронизируется с github).
Diffstat (limited to 'contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h')
-rw-r--r-- | contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h b/contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h new file mode 100644 index 0000000000..608dac7913 --- /dev/null +++ b/contrib/clickhouse/src/Storages/System/StorageSystemGraphite.h @@ -0,0 +1,36 @@ +#pragma once + +#include <DataTypes/DataTypeArray.h> +#include <DataTypes/DataTypeString.h> +#include <DataTypes/DataTypesNumber.h> +#include <Storages/System/IStorageSystemOneBlock.h> +#include <Storages/MergeTree/MergeTreeData.h> + +namespace DB +{ + +/// Provides information about Graphite configuration. +class StorageSystemGraphite final : public IStorageSystemOneBlock<StorageSystemGraphite> +{ +public: + std::string getName() const override { return "SystemGraphite"; } + + static NamesAndTypesList getNamesAndTypes(); + + struct Config + { + Graphite::Params graphite_params; + Array databases; + Array tables; + }; + + using Configs = std::map<const String, Config>; + + +protected: + using IStorageSystemOneBlock::IStorageSystemOneBlock; + + void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override; +}; + +} |