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

Method addSource

src/QueryPipeline/Pipe.cpp:347–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void Pipe::addSource(ProcessorPtr source)
348{
349 checkSource(*source);
350 const auto & source_header_ptr = source->getOutputs().front().getSharedHeader();
351
352 if (output_ports.empty())
353 header = source_header_ptr;
354 else
355 assertBlocksHaveEqualStructure(*header, *source_header_ptr, "Pipes");
356
357 if (collected_processors)
358 collected_processors->emplace_back(source);
359
360 output_ports.push_back(&source->getOutputs().front());
361 processors->emplace_back(std::move(source));
362
363 max_parallel_streams = std::max<size_t>(max_parallel_streams, output_ports.size());
364}
365
366void Pipe::addTotalsSource(ProcessorPtr source)
367{

Callers 8

initializePipelineMethod · 0.45
readMethod · 0.45
makePipeMethod · 0.45
addNullSourceFunction · 0.45
makePipeMethod · 0.45
createSelectMethod · 0.45
buildInsertPipelineMethod · 0.45

Calls 8

checkSourceFunction · 0.85
getSharedHeaderMethod · 0.80
frontMethod · 0.45
emptyMethod · 0.45
emplace_backMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected