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

Function create

src/DataTypes/DataTypeArray.cpp:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static DataTypePtr create(const ASTPtr & arguments)
110{
111 if (!arguments || arguments->children.size() != 1)
112 throw Exception(ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH, "Array data type family must have exactly one argument - type of elements");
113
114 return std::make_shared<DataTypeArray>(DataTypeFactory::instance().get(arguments->children[0]));
115}
116
117
118void registerDataTypeArray(DataTypeFactory & factory)

Callers 2

createColumnMethod · 0.70
doGetSerializationMethod · 0.70

Calls 3

ExceptionClass · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected