apache / apache/arrow-java

[JAVA] Vector should avoid reallocating validity buffer when necessary

未关闭
#370 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。