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

Function checkSource

src/Processors/Pipe.cpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static void checkSource(const IProcessor & source)
47{
48 if (!source.getInputs().empty())
49 throw Exception("Source for pipe shouldn't have any input, but " + source.getName() + " has " +
50 toString(source.getInputs().size()) + " inputs.", ErrorCodes::LOGICAL_ERROR);
51
52 if (source.getOutputs().empty())
53 throw Exception("Source for pipe should have single output, but it doesn't have any",
54 ErrorCodes::LOGICAL_ERROR);
55
56 if (source.getOutputs().size() > 1)
57 throw Exception("Source for pipe should have single output, but " + source.getName() + " has " +
58 toString(source.getOutputs().size()) + " outputs.", ErrorCodes::LOGICAL_ERROR);
59}
60
61static OutputPort * uniteExtremes(const OutputPortRawPtrs & ports, const Block & header, Processors & processors)
62{

Callers 4

PipeMethod · 0.70
addSourceMethod · 0.70
addTotalsSourceMethod · 0.70
addExtremesSourceMethod · 0.70

Calls 5

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

Tested by

no test coverage detected