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

Function checkHeaders

src/Processors/QueryPlan/IntersectOrExceptStep.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static SharedHeader checkHeaders(const SharedHeaders & input_headers)
21{
22 if (input_headers.empty())
23 throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot perform intersect/except on empty set of query plan steps");
24
25 SharedHeader res = input_headers.front();
26 for (const auto & header : input_headers)
27 assertBlocksHaveEqualStructure(*header, *res, "IntersectOrExceptStep");
28
29 return res;
30}
31
32IntersectOrExceptStep::IntersectOrExceptStep(
33 SharedHeaders input_headers_, Operator operator_, size_t max_threads_)

Callers 1

updateOutputHeaderMethod · 0.70

Calls 4

ExceptionClass · 0.50
emptyMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected