apache / apache/arrow-java

[Java] UInt4Vector/UInt8Vector can't represent their full range

未關閉
#78 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
94
分支
152
平均合併
3 天 16 小時
30 天內合併 PR
11

描述

### Describe the bug, including details regarding any error messages, version, and platform.

The `Uint4Vector` set methods only accept an `int` type. I have some `uint32` values which I currently hold as `long` values in Java, as Java does not support unsigned integer types; long ensures no overflow. When writing to Arrow though, I would like to write it as its true `uint32` representation. Similar issue with `Uint8Vector`, where it only accepts `long` and no `BigInteger`. I did notice that `Uint2Vector` _does_ allow input as either `int` or `char`; so just seems the other UInt structures were neglected.

### Component(s)

Java

貢獻指南

開啟貢獻指南

研究方向

先從 issue 中描述的 Uint4Vector 和 Uint8Vector 的 set 方法開始,然後將它們接受的輸入與現有的 Uint2Vector int 和 char 多載進行比較。當 Uint4Vector 能夠表示相關的 uint32 值,且 Uint8Vector 能夠在不發生溢位的情況下接受所需的 BigInteger 值時,工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
data
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
48/100

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

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