better style

This commit is contained in:
Nikita Mikhaylov 2019-08-01 15:40:12 +03:00
parent 406f7a2bfe
commit 9dbb758133
2 changed files with 9 additions and 10 deletions

View File

@ -22,11 +22,11 @@ Block PartLogElement::createBlock()
auto event_type_datatype = std::make_shared<DataTypeEnum8>(
DataTypeEnum8::Values
{
{"NEW_PART", static_cast<Int8>(NEW_PART)},
{"MERGE_PARTS", static_cast<Int8>(MERGE_PARTS)},
{"DOWNLOAD_PART", static_cast<Int8>(DOWNLOAD_PART)},
{"REMOVE_PART", static_cast<Int8>(REMOVE_PART)},
{"MUTATE_PART", static_cast<Int8>(MUTATE_PART)},
{"New part", static_cast<Int8>(NEW_PART)},
{"Merge parts", static_cast<Int8>(MERGE_PARTS)},
{"Download part", static_cast<Int8>(DOWNLOAD_PART)},
{"Remove part", static_cast<Int8>(REMOVE_PART)},
{"Mutate part", static_cast<Int8>(MUTATE_PART)},
});
return

View File

@ -25,14 +25,13 @@ template <> struct NearestFieldTypeImpl<QueryLogElement::Type> { using Type = UI
Block QueryLogElement::createBlock()
{
auto query_status_datatype = std::make_shared<DataTypeEnum8>(
DataTypeEnum8::Values
{
{"QUERY_START", static_cast<Int8>(QUERY_START)},
{"QUERY_FINISH", static_cast<Int8>(QUERY_FINISH)},
{"EXCEPTION_BEFORE_START", static_cast<Int8>(EXCEPTION_BEFORE_START)},
{"EXCEPTION_WHILE_PROCESSING", static_cast<Int8>(EXCEPTION_WHILE_PROCESSING)}
{"Query start", static_cast<Int8>(QUERY_START)},
{"Query finish", static_cast<Int8>(QUERY_FINISH)},
{"Exception before start", static_cast<Int8>(EXCEPTION_BEFORE_START)},
{"Exception while processing", static_cast<Int8>(EXCEPTION_WHILE_PROCESSING)}
});
return