-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to deserialize RecordBatch
#3
Comments
You can't directly deserialize from a |
Tried this: #[derive(Debug, Clone, PartialEq, ArrowField, ArrowSerialize, ArrowDeserialize)]
pub struct QueryResult {
#[arrow_field(type = "arrow_convert::field::LargeString")]
key: String,
#[arrow_field(type = "arrow_convert::field::LargeBinary")]
value: Vec<u8>,
}
arrow_array_deserialize_iterator::<QueryResult>(&StructArray::from(batch)).unwrap() But got:
Would be nice to have more info in this error :) |
Interesting, for my query i managed to get it working by making all the fields optional.
Perhaps the problem is that if in my schema a field is nullable, then the field must be optional? |
You probably have the Nullable flag enabled in one or more of your incoming data type. Would certainly be nice to have more in-depth error reporting. |
Will try to PR a little change to that error message :) |
See #4 |
Published 0.6.6 |
Hi,
I'm trying to use your library to deserialize a
RecordBatch
, could you add an example for that?Thank you!
The text was updated successfully, but these errors were encountered: