felipecrv opened a new issue, #2526: URL: https://github.com/apache/arrow-adbc/issues/2526
### What happened? Running SQL queries through the Snowflake ADBC driver, from Rust, can cause a crash due to buffer alignment issues. ``` thread 'main' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-buffer-53.4.0/src/buffer/scalar.rs:143:17: Memory pointer from external source (e.g, FFI) is not aligned with the specified scalar type. Before importing buffer through FFI, please make sure the allocation is aligned. ``` This is known problem for Rust [1] when it's consuming buffers from systems that don't care as much about alignment as `rustc` does. It's been fixed in the FFI integration with Python [2]. The ADBC Rust driver wrapper should do the same. How can it trigger the `ArrayData::align_buffers()` call that makes the Python FFI integration work without alignment issues? [1] https://github.com/apache/arrow/issues/43552 [2] https://github.com/apache/arrow-rs/pull/6472 ### Stack Trace _No response_ ### How can we reproduce the bug? _No response_ ### Environment/Setup _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org