Looking at the code, it seems like there might be a memory leak when there are errors, probably there are more
|
let array_data = ArrayData::from_spark((array_ptr, schema_ptr))?; |
I think there should be some more robust way to handle arrow over FFI that avoid memory leaks (maybe move all JNI arrow stuff behind a guard that on drop will release the memory or calling to_owned will take the memory)