#include #include #include namespace DB { NamesAndTypesList StorageSystemCollations::getNamesAndTypes() { return { {"name", std::make_shared()}, {"language", std::make_shared(std::make_shared())}, }; } void StorageSystemCollations::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const { for (const auto & [locale, lang]: AvailableCollationLocales::instance().getAvailableCollations()) { res_columns[0]->insert(locale); res_columns[1]->insert(lang ? *lang : Field()); } } }