mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
22 lines
535 B
C++
22 lines
535 B
C++
#include <Processors/QueryPlan/ReadFromPreparedSource.h>
|
|
#include <QueryPipeline/QueryPipelineBuilder.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
ReadFromPreparedSource::ReadFromPreparedSource(Pipe pipe_)
|
|
: ISourceStep(DataStream{.header = pipe_.getHeader()})
|
|
, pipe(std::move(pipe_))
|
|
{
|
|
}
|
|
|
|
void ReadFromPreparedSource::initializePipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &)
|
|
{
|
|
for (const auto & processor : pipe.getProcessors())
|
|
processors.emplace_back(processor);
|
|
|
|
pipeline.init(std::move(pipe));
|
|
}
|
|
|
|
}
|