apache / apache/arrow-java

JsonFileWriter fails with NPE after VectorSchemaRoot syncSchema

未关闭
#390 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: bug
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

Hey there :)

Repro:
- Open VSR
- Do something that'll change the `Field` of one of the vectors in the VSR (promotable writer, etc)
- `vsr.syncSchema()`
- Open JsonFileWriter, `start`, `write` -> NPE

Looks like the cause is that the `fieldVectorsMap` cache isn't updated in `syncSchema`? Possibly a few other places - `addVector`/`removeVector` too?

Cheers,

James

**Reporter**: [James Henderson](https://issues.apache.org/jira/browse/ARROW-11385) / @jarohen

**Note**: *This issue was originally created as [ARROW-11385](https://issues.apache.org/jira/browse/ARROW-11385). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

贡献指南

打开贡献指南

调研方向

复现报告中提到的涉及 VectorSchemaRoot、syncSchema 和 JsonFileWriter 的序列,然后检查 fieldVectorsMap 缓存以及报告中提到的 addVector/removeVector 路径。完成的标准是:vector Field 发生变化且 syncSchema 在没有 NPE 的情况下完成后,JsonFileWriter 可以启动并写入。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
data
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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