[JAVA] Vector should avoid reallocating validity buffer when necessary
未關閉
Type: enhancement
- 主要語言
- Java
- 星號
- 94
- 分支
- 152
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 11
描述
Vector always reallocates validity buffer in the case of all-null or non-null
Ideally we should only allocate if the source was not provided
**Reporter**: [Zhenyuan Zhao](https://issues.apache.org/jira/browse/ARROW-3222) / @zzhao0
**Note**: *This issue was originally created as [ARROW-3222](https://issues.apache.org/jira/browse/ARROW-3222). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
貢獻指南
研究方向
從 BaseFixedWidthVector.java#L511 和 BitVectorHelper.java#L180 的配置路徑開始,接著追蹤全為 null 的向量和非 null 向量如何處理 validity 緩衝區。當且僅當未提供來源時才進行配置,同時避免不必要的 validity 緩衝區重新配置後,此變更即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- data, performance
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100