#include "StorageSystemContributors.h" #include #include #include extern const char * auto_contributors[]; namespace DB { NamesAndTypesList StorageSystemContributors::getNamesAndTypes() { return { {"name", std::make_shared()}, }; } void StorageSystemContributors::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const { std::vector contributors; for (auto it = auto_contributors; *it; ++it) contributors.emplace_back(*it); std::shuffle(contributors.begin(), contributors.end(), thread_local_rng); for (auto & it : contributors) res_columns[0]->insert(String(it)); } }