diff --git a/src/Common/Documentation.cpp b/src/Common/Documentation.cpp new file mode 100644 index 00000000000..862ecb6054c --- /dev/null +++ b/src/Common/Documentation.cpp @@ -0,0 +1,30 @@ +#include + +namespace DB +{ + +std::string Documentation::examplesAsString() const +{ + std::string res; + for (const auto & [example_name, example_query] : examples) + { + res += example_name + ":\n\n"; + res += "```sql\n"; + res += example_query + "\n"; + res += "```\n"; + } + return res; +} + +std::string Documentation::categoriesAsString() const +{ + if (categories.empty()) + return ""; + + std::string res = categories[0]; + for (size_t i = 1; i < categories.size(); ++i) + res += ", " + categories[i]; + return res; +} + +} diff --git a/src/Common/Documentation.h b/src/Common/Documentation.h index 66ff2a58b5c..c71aa8772ed 100644 --- a/src/Common/Documentation.h +++ b/src/Common/Documentation.h @@ -78,29 +78,8 @@ struct Documentation /// TODO: Please remove this constructor. Documentation should always be non-empty. Documentation() = default; - std::string examplesAsString() const - { - std::string res; - for (const auto & [example_name, example_query] : examples) - { - res += example_name + ":\n\n"; - res += "```sql\n"; - res += example_query + "\n"; - res += "```\n"; - } - return res; - } - - std::string categoriesAsString() const - { - if (categories.empty()) - return ""; - - std::string res = categories[0]; - for (size_t i = 1; i < categories.size(); ++i) - res += ", " + categories[i]; - return res; - } + std::string examplesAsString() const; + std::string categoriesAsString() const; }; } diff --git a/src/Storages/System/StorageSystemFunctions.cpp b/src/Storages/System/StorageSystemFunctions.cpp index a4773b0be78..f3a297a11d1 100644 --- a/src/Storages/System/StorageSystemFunctions.cpp +++ b/src/Storages/System/StorageSystemFunctions.cpp @@ -40,7 +40,6 @@ namespace { res_columns[2]->insert(false); res_columns[3]->insertDefault(); - res_columns[7]->insert(false); } else {