[Java] Memory allocation alignment
- 主要语言
- Java
- 星标
- 94
- 派生
- 152
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 11
描述
### Describe the bug, including details regarding any error messages, version, and platform.
We see memory alignment error when passing arrays allocated using Java arrow to Rust arrow. This is due to strict memory alignment requirement (https://github.com/apache/arrow-rs/issues/4431) at Rust side. I have described the issue there.
So as it looks like it is impossible to access unaligned memory pointers at Rust side. I'm wondering if we could change Java arrow on memory allocation? Could we allocate memory with alignment for arrays in Java arrow so it could be safely sent to other arrow ecosystems?
### Component(s)
Java
贡献指南
调研方向
首先检查 Java 组件的内存分配路径以及链接的 arrow-rs issue 4431。确定 Java Arrow 是否能够为与 Rust Arrow 共享的数组提供所需的对齐方式,并定义将该 issue 视为已解决所需的分配行为和验证。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- data-engineering
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100