| 60 | } |
| 61 | |
| 62 | DataTypePtr SimpleDataTypesCache::getType(BinaryTypeIndex index) const |
| 63 | { |
| 64 | uint8_t index_value = static_cast<uint8_t>(index); |
| 65 | if (index_value >= by_index.size() || by_index[index_value].type == nullptr) |
| 66 | throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid binary type index: {}", index); |
| 67 | |
| 68 | return by_index[index_value].type; |
| 69 | } |
| 70 | |
| 71 | SerializationPtr SimpleDataTypesCache::getSerialization(BinaryTypeIndex index) const |
| 72 | { |