| 107 | } |
| 108 | |
| 109 | static 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 | |
| 118 | void registerDataTypeArray(DataTypeFactory & factory) |
no test coverage detected