apache / apache/arrow-java

[Java] Memory allocation alignment

未關閉
#186 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Type: bug
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。