mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 22:40:50 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
30 lines
767 B
C++
30 lines
767 B
C++
#pragma once
|
|
|
|
#include <Core/Types.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Up to what stage the SELECT query is executed or needs to be executed.
|
|
namespace QueryProcessingStage
|
|
{
|
|
/// Numbers matter - the later stage has a larger number.
|
|
enum Enum
|
|
{
|
|
FetchColumns = 0, /// Only read/have been read the columns specified in the query.
|
|
WithMergeableState = 1, /// Until the stage where the results of processing on different servers can be combined.
|
|
Complete = 2, /// Completely.
|
|
};
|
|
|
|
inline const char * toString(UInt64 stage)
|
|
{
|
|
static const char * data[] = { "FetchColumns", "WithMergeableState", "Complete" };
|
|
return stage < 3
|
|
? data[stage]
|
|
: "Unknown stage";
|
|
}
|
|
}
|
|
|
|
}
|