#include #include #include #include namespace DB { NamesAndTypesList SystemMergeTreeSettings::getNamesAndTypes() { return { {"name", std::make_shared()}, {"value", std::make_shared()}, {"changed", std::make_shared()}, }; } void SystemMergeTreeSettings::fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo &) const { const MergeTreeSettings & settings = context.getMergeTreeSettings(); #define ADD_SETTING(TYPE, NAME, DEFAULT, DESCRIPTION) \ res_columns[0]->insert(#NAME); \ res_columns[1]->insert(settings.NAME.toString()); \ res_columns[2]->insert(settings.NAME.changed); APPLY_FOR_MERGE_TREE_SETTINGS(ADD_SETTING) #undef ADD_SETTING } }