| 164 | } |
| 165 | |
| 166 | DataTypePtr DataTypeFactory::getCustom(DataTypeCustomDescPtr customization, const UInt16 flags) const |
| 167 | { |
| 168 | if (!customization->name) |
| 169 | throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot create custom type without name"); |
| 170 | |
| 171 | auto type = get(customization->name->getName(), flags); |
| 172 | type->setCustomization(std::move(customization)); |
| 173 | return type; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | void DataTypeFactory::registerDataType(const String & family_name, Value creator, CaseSensitiveness case_sensitiveness) |
no test coverage detected