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

Function getColumnFromBlock

src/Interpreters/getColumnFromBlock.cpp:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72ColumnPtr getColumnFromBlock(const Block & block, const NameAndTypePair & requested_column)
73{
74 auto result_column = tryGetColumnFromBlock(block, requested_column);
75 if (!result_column)
76 throw Exception(ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK,
77 "Not found column or subcolumn {} in block. There are only columns: {}",
78 requested_column.name, block.dumpNames());
79
80 return result_column;
81}
82
83}

Callers 2

transformHeaderMethod · 0.85
transformMethod · 0.85

Calls 3

tryGetColumnFromBlockFunction · 0.85
ExceptionClass · 0.70
dumpNamesMethod · 0.45

Tested by

no test coverage detected