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

Function create

src/DataTypes/DataTypeNullable.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static DataTypePtr create(const ASTPtr & arguments)
135{
136 if (!arguments || arguments->children.size() != 1)
137 throw Exception(ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH, "Nullable data type family must have exactly one argument - nested type");
138
139 DataTypePtr nested_type = DataTypeFactory::instance().get(arguments->children[0]);
140
141 return std::make_shared<DataTypeNullable>(nested_type);
142}
143
144
145void registerDataTypeNullable(DataTypeFactory & factory)

Callers 4

createColumnMethod · 0.70
createColumnConstMethod · 0.70
doGetSerializationMethod · 0.70

Calls 3

ExceptionClass · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected