You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mapleFU (via GitHub)" <gi...@apache.org> on 2023/08/22 06:41:27 UTC
[GitHub] [arrow] mapleFU commented on issue #15058: [Python] Native support for UUID
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org