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

Function checkSource

src/QueryPipeline/Pipe.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void checkSource(const IProcessor & source)
27{
28 if (!source.getInputs().empty())
29 throw Exception(
30 ErrorCodes::LOGICAL_ERROR,
31 "Source for pipe shouldn't have any input, but {} has {} inputs",
32 source.getName(),
33 source.getInputs().size());
34
35 if (source.getOutputs().size() != 1)
36 throw Exception(
37 ErrorCodes::LOGICAL_ERROR,
38 "Source for pipe should have single output, but {} has {} outputs",
39 source.getName(),
40 source.getOutputs().size());
41}
42
43static OutputPort * uniteExtremes(const OutputPortRawPtrs & ports, SharedHeader header, Processors & processors)
44{

Callers 4

PipeMethod · 0.85
addSourceMethod · 0.85
addTotalsSourceMethod · 0.85
addExtremesSourceMethod · 0.85

Calls 4

ExceptionClass · 0.50
emptyMethod · 0.45
getNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected