| 378 | } |
| 379 | |
| 380 | ColumnWithTypeAndName 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 | |
| 394 | bool Block::has(const std::string & name, bool case_insensitive) const |
no test coverage detected