[Java] UInt4Vector/UInt8Vector can't represent their full range
- 主要语言
- 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