apache / apache/arrow-java

JsonFileWriter fails with NPE after VectorSchemaRoot syncSchema

オープン
#390 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Type: bug
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。