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

Method getCustom

src/DataTypes/DataTypeFactory.cpp:272–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272DataTypePtr 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
282DataTypePtr DataTypeFactory::getCustom(const String & base_name, DataTypeCustomDescPtr customization) const
283{

Callers 5

upgradeFromPrealphaFunction · 0.80
ColumnDynamic.cppFile · 0.80
createNestedFunction · 0.80

Calls 4

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

Tested by

no test coverage detected