ClickHouse/src/Processors/QueryPlan/IQueryPlanStep.cpp

20 lines
366 B
C++
Raw Normal View History

2020-06-05 15:38:03 +00:00
#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;
}
}