Skip to content
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

Can't (de)serialize Buffer<u8>> #101

Closed
emilk opened this issue Feb 21, 2023 · 0 comments
Closed

Can't (de)serialize Buffer<u8>> #101

emilk opened this issue Feb 21, 2023 · 0 comments

Comments

@emilk
Copy link
Contributor

emilk commented Feb 21, 2023

arrow_array_deserialize_iterator::<Buffer<u8>>(&array) yields:

error[E0277]: the trait bound `u8: ArrowEnableVecForType` is not satisfied
  --> arrow2_convert/tests/test_deserialize.rs:85:16
   |
85 |     arrow_array_deserialize_iterator::<Buffer<u8>>(&array)
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ArrowEnableVecForType` is not implemented for `u8`
   |
   = help: the following other types implement trait `ArrowEnableVecForType`:
             f32
             f64
             i16
             i32
             i64
             i8
             u16
             u32
             u64
   = note: required for `Buffer<u8>` to implement `ArrowDeserialize`

So all types are supported except for u8. Buffer<u8> is sometimes desired over Vec<u8>, because of the internal ref-counting of Buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants