mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
20 lines
366 B
C++
20 lines
366 B
C++
|
#include <Processors/QueryPlan/IQueryPlanStep.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
namespace ErrorCodes
|
||
|
{
|
||
|
extern const int LOGICAL_ERROR;
|
||
|
}
|
||
|
|
||
|
const DataStream & IQueryPlanStep::getOutputStream() const
|
||
|
{
|
||
|
if (!hasOutputStream())
|
||
|
throw Exception("QueryPlanStep " + getName() + " does not have output stream.", ErrorCodes::LOGICAL_ERROR);
|
||
|
|
||
|
return *output_stream;
|
||
|
}
|
||
|
|
||
|
}
|