Skip to content

Conversation

@ritchie46
Copy link
Contributor

Continue #9778

@github-actions
Copy link

github-actions bot commented Apr 5, 2021

@ritchie46 ritchie46 changed the title ARROW-12202: [Rust] Fix SEGFAULT/ SIGILL in child-data ffi ARROW-12202: [Rust] WIP Fix SEGFAULT/ SIGILL in child-data ffi Apr 5, 2021
// 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(),
Copy link
Member

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.

// release children
for i in 0..array.n_children {
let child = *array.children.add(i as usize);
release_array(child);
Copy link
Member

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.

Copy link
Member

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.

@alamb
Copy link
Contributor

alamb commented Apr 19, 2021

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.

@nevi-me
Copy link
Contributor

nevi-me commented May 3, 2021

Reopened at apache/arrow-rs#21

@nevi-me nevi-me closed this May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants