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

Method updateOutputHeader

src/Processors/QueryPlan/InputSelectorStep.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void InputSelectorStep::updateOutputHeader()
25{
26 if (!input_headers[0]->empty())
27 throw Exception(ErrorCodes::LOGICAL_ERROR, "InputSelectorStep: signal header must be empty");
28
29 assertBlocksHaveEqualStructure(*input_headers[1], *input_headers[2], "InputSelectorStep");
30
31 output_header = input_headers[1];
32}
33
34/// If the pipeline header has extra columns not in the expected header, add an ExpressionTransform to drop them.
35static void dropExtraColumns(QueryPipelineBuilder & pipeline, const Block & expected_header)

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected