mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
27 lines
587 B
C++
27 lines
587 B
C++
|
#include <Storages/MergeTree/MergeAlgorithm.h>
|
||
|
#include <Common/Exception.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
namespace ErrorCodes
|
||
|
{
|
||
|
extern const int NOT_IMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
String toString(MergeAlgorithm merge_algorithm)
|
||
|
{
|
||
|
switch (merge_algorithm)
|
||
|
{
|
||
|
case MergeAlgorithm::Undecided:
|
||
|
return "Undecided";
|
||
|
case MergeAlgorithm::Horizontal:
|
||
|
return "Horizontal";
|
||
|
case MergeAlgorithm::Vertical:
|
||
|
return "Vertical";
|
||
|
}
|
||
|
|
||
|
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Unknown MergeAlgorithm {}", static_cast<UInt64>(merge_algorithm));
|
||
|
}
|
||
|
|
||
|
}
|