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)

Reply via email to