-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help] Implement arrow_serialize/deserialize for newtype over num_complex #94
Comments
@graybc thanks for raising this. You're right. Customizing non-primitive types needs more work. As a long-term solution, in addition to #79 some of the reworking of the For the short-term, the code below is a possible workaround. It manually implements part of what we would do for remote type. However, the way data types are specified, it might be a bit tricky to specify the data type exactly the way you have it in your example. It should be possible by manually implementing the
|
Hi @ncpenke, Thanks so much, that makes a lot of sense! I'll keep an eye out for the next release as well but this is a very cool project and has really helped me get started with Apache Arrow and arrow2. |
I'd like to create a newtype struct that contains num_complex::Complex32 and can convert to/from arrow.
I'm having trouble understanding the documentation for implementing ArrowSerialize and ArrowDeserialize with types other than privatives (as shown in the complex_example.rs) can anyone help point me in the right direction? Here is what I have so far, though I know I'm not approaching this right...
I've seen issue #79 reference adding support for remote types, but until then and to better understand arrow2 I'd like to understand how to do this manually. Thanks in advance!
The text was updated successfully, but these errors were encountered: