| 851 | } |
| 852 | |
| 853 | Result<std::shared_ptr<DataType>> ExampleUuidType::Deserialize( |
| 854 | std::shared_ptr<DataType> storage_type, const std::string& serialized) const { |
| 855 | if (serialized != "uuid-serialized") { |
| 856 | return Status::Invalid("Type identifier did not match: '", serialized, "'"); |
| 857 | } |
| 858 | if (!storage_type->Equals(*fixed_size_binary(16))) { |
| 859 | return Status::Invalid("Invalid storage type for UuidType: ", |
| 860 | storage_type->ToString()); |
| 861 | } |
| 862 | return std::make_shared<ExampleUuidType>(); |
| 863 | } |
| 864 | |
| 865 | bool SmallintType::ExtensionEquals(const ExtensionType& other) const { |
| 866 | return (other.extension_name() == this->extension_name()); |
nothing calls this directly
no test coverage detected