ClickHouse/src/Storages/System/StorageSystemBuildOptions.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
627 B
C++
Raw Normal View History

#include "StorageSystemBuildOptions.h"
#include <DataTypes/DataTypeString.h>
#include <Core/Settings.h>
extern const char * auto_config_build[];
namespace DB
{
NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes()
{
return {
{"name", std::make_shared<DataTypeString>()},
{"value", std::make_shared<DataTypeString>()},
};
}
void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const
{
2020-04-22 07:03:43 +00:00
for (auto * it = auto_config_build; *it; it += 2)
2017-06-18 06:11:49 +00:00
{
res_columns[0]->insert(it[0]);
res_columns[1]->insert(it[1]);
}
}
}