1#pragma once
2
3#include <ext/shared_ptr_helper.h>
4#include <Storages/MergeTree/MergeTreeSettings.h>
5#include <Storages/System/IStorageSystemOneBlock.h>
6
7
8namespace DB
9{
10
11class Context;
12
13
14/** implements system table "merge_tree_settings", which allows to get information about the current MergeTree settings.
15 */
16class SystemMergeTreeSettings : public ext::shared_ptr_helper<SystemMergeTreeSettings>, public IStorageSystemOneBlock<SystemMergeTreeSettings>
17{
18 friend struct ext::shared_ptr_helper<SystemMergeTreeSettings>;
19public:
20 std::string getName() const override { return "SystemMergeTreeSettings"; }
21
22 static NamesAndTypesList getNamesAndTypes();
23
24protected:
25 using IStorageSystemOneBlock::IStorageSystemOneBlock;
26
27 void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
28};
29
30}
31