2018-10-26 17:43:50 +00:00
|
|
|
#include "StorageSystemBuildOptions.h"
|
|
|
|
|
2018-07-24 14:42:52 +00:00
|
|
|
#include <DataTypes/DataTypeString.h>
|
2019-03-22 12:08:30 +00:00
|
|
|
#include <Core/Settings.h>
|
2018-10-26 17:43:50 +00:00
|
|
|
|
|
|
|
extern const char * auto_config_build[];
|
2017-01-25 22:24:36 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes()
|
2018-01-25 14:42:39 +00:00
|
|
|
{
|
2018-07-24 14:28:56 +00:00
|
|
|
return {
|
|
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
|
|
{"value", std::make_shared<DataTypeString>()},
|
|
|
|
};
|
2017-01-25 22:24:36 +00:00
|
|
|
}
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
2017-01-25 22:24:36 +00:00
|
|
|
{
|
2020-04-16 12:31:57 +00:00
|
|
|
#if !defined(ARCADIA_BUILD)
|
2017-06-18 06:11:49 +00:00
|
|
|
for (auto it = auto_config_build; *it; it += 2)
|
|
|
|
{
|
2018-10-22 08:54:54 +00:00
|
|
|
res_columns[0]->insert(it[0]);
|
|
|
|
res_columns[1]->insert(it[1]);
|
2017-04-01 07:20:54 +00:00
|
|
|
}
|
2020-04-16 12:31:57 +00:00
|
|
|
#else
|
|
|
|
UNUSED(res_columns);
|
|
|
|
#endif
|
2017-01-25 22:24:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|