JsonFileWriter fails with NPE after VectorSchemaRoot syncSchema
- 主要言語
- Java
- スター
- 94
- フォーク
- 152
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 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 パスを調査します。完了の条件は、ベクトルの Field が変更されて syncSchema が NPE なしで完了した後に、JsonFileWriter が起動して書き込めることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- data
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100