mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-22 01:30:51 +00:00
better style
This commit is contained in:
parent
406f7a2bfe
commit
9dbb758133
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user