MCPcopy Create free account
hub / github.com/ByConity/ByConity / getCustom

Method getCustom

src/DataTypes/DataTypeFactory.cpp:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166DataTypePtr 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
177void DataTypeFactory::registerDataType(const String & family_name, Value creator, CaseSensitiveness case_sensitiveness)

Callers 1

createNestedFunction · 0.80

Calls 4

setCustomizationMethod · 0.80
ExceptionClass · 0.50
getFunction · 0.50
getNameMethod · 0.45

Tested by

no test coverage detected