MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / work

Method work

src/Processors/Sources/LazyReadReplacingFinalSource.cpp:326–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void LazyReadReplacingFinalSource::work()
327{
328 auto & reading = shared_state->reading_step;
329 chassert(reading);
330
331 auto plan = buildPlanFromReadingStep(std::move(reading), metadata_snapshot, data, query_context);
332
333 auto builder = plan.buildQueryPipeline(QueryPlanOptimizationSettings(query_context), BuildQueryPipelineSettings(query_context));
334
335 auto pipe = QueryPipelineBuilder::getPipe(std::move(*builder), resources);
336 pipe.resize(1);
337
338 pipeline_output = pipe.getOutputPort(0);
339 processors = Pipe::detachProcessors(std::move(pipe));
340}
341
342IProcessor::PipelineUpdate LazyReadReplacingFinalSource::updatePipeline()
343{

Callers

nothing calls this directly

Calls 5

getOutputPortMethod · 0.80
buildQueryPipelineMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected