mapleFU commented on issue #15058:
URL: https://github.com/apache/arrow/issues/15058#issuecomment-1687558148

   I found a `UUID` in `src/arrow/testing/extension_type.h`
   
   ```c++
   class ARROW_TESTING_EXPORT UuidArray : public ExtensionArray {
    public:
     using ExtensionArray::ExtensionArray;
   };
   
   class ARROW_TESTING_EXPORT UuidType : public ExtensionType {
    public:
     UuidType() : ExtensionType(fixed_size_binary(16)) {}
   
     std::string extension_name() const override { return "uuid"; }
   
     bool ExtensionEquals(const ExtensionType& other) const override;
   
     std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const 
override;
   
     Result<std::shared_ptr<DataType>> Deserialize(
         std::shared_ptr<DataType> storage_type,
         const std::string& serialized) const override;
   
     std::string Serialize() const override { return "uuid-serialized"; }
   };
   ```
   
   Maybe we just need to draft and make it available?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to