You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "James Henderson (Jira)" <ji...@apache.org> on 2021/01/25 22:50:00 UTC
[jira] [Created] (ARROW-11385) JsonFileWriter fails with NPE after
VectorSchemaRoot syncSchema
James Henderson created ARROW-11385:
---------------------------------------
Summary: JsonFileWriter fails with NPE after VectorSchemaRoot syncSchema
Key: ARROW-11385
URL: https://issues.apache.org/jira/browse/ARROW-11385
Project: Apache Arrow
Issue Type: Bug
Components: Java
Affects Versions: 2.0.0
Reporter: James Henderson
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)