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

Method getColumnOrSubcolumnByName

src/Core/Block.cpp:380–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380ColumnWithTypeAndName Block::getColumnOrSubcolumnByName(const std::string & name) const
381{
382 auto result = findColumnOrSubcolumnByName(name);
383 if (!result)
384 throw Exception(
385 ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK,
386 "Not found column or subcolumn {} in block. There are only columns: {}",
387 name,
388 dumpNames());
389
390 return *result;
391}
392
393
394bool Block::has(const std::string & name, bool case_insensitive) const

Callers 6

readMethod · 0.80
getIndexBlockAndPermuteFunction · 0.80
splitBlockIntoPartsMethod · 0.80
updateMethod · 0.80

Calls 1

ExceptionClass · 0.50

Tested by

no test coverage detected