| 73 | } |
| 74 | |
| 75 | static void checkOutput(const OutputPort & output, const ProcessorPtr & processor, const Processors & processors = {}) |
| 76 | { |
| 77 | if (!output.isConnected()) |
| 78 | { |
| 79 | WriteBufferFromOwnString out; |
| 80 | if (!processors.empty()) |
| 81 | printPipeline(processors, out); |
| 82 | |
| 83 | throw Exception( |
| 84 | ErrorCodes::LOGICAL_ERROR, |
| 85 | "Cannot create QueryPipeline because {} {} has disconnected output: {}", |
| 86 | processor->getName(), processor->getDescription(), out.str()); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | static void checkPulling( |
| 91 | Processors & processors, |
no test coverage detected