| 270 | } |
| 271 | |
| 272 | DataTypePtr DataTypeFactory::getCustom(DataTypeCustomDescPtr customization) const |
| 273 | { |
| 274 | if (!customization->name) |
| 275 | throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot create custom type without name"); |
| 276 | |
| 277 | auto type = get(customization->name->getName()); |
| 278 | type->setCustomization(std::move(customization)); |
| 279 | return type; |
| 280 | } |
| 281 | |
| 282 | DataTypePtr DataTypeFactory::getCustom(const String & base_name, DataTypeCustomDescPtr customization) const |
| 283 | { |
no test coverage detected