| 132 | } |
| 133 | |
| 134 | static 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 | |
| 145 | void registerDataTypeNullable(DataTypeFactory & factory) |
no test coverage detected