-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-12202: [Rust] WIP Fix SEGFAULT/ SIGILL in child-data ffi #9887
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
Conversation
| // For child data a non null string is expected and is called item | ||
| // TODO: get the field name for general nested data | ||
| // For List child data a non null string is expected and is called item | ||
| name: CString::new("item").unwrap().into_raw(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be released in release_schema, like format already is.
rust/arrow/src/ffi.rs
Outdated
| // release children | ||
| for i in 0..array.n_children { | ||
| let child = *array.children.add(i as usize); | ||
| release_array(child); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should call the release callback stored on child, not release_array directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note you must do the same thing in release_schema as well.
|
The Apache Arrow Rust community is moving the Rust implementation into its own dedicated github repositories arrow-rs and arrow-datafusion. It is likely we will not merge this PR into this repository Please see the mailing-list thread for more details We expect the process to take a few days and will follow up with a migration plan for the in-flight PRs. |
|
Reopened at apache/arrow-rs#21 |
Continue #9778