nbruno commented on a change in pull request #9151: URL: https://github.com/apache/arrow/pull/9151#discussion_r582504347
########## File path: java/vector/src/main/codegen/templates/StructWriters.java ########## @@ -184,6 +189,44 @@ public ListWriter list(String name) { return writer; } + @Override + public MapWriter map(String name) { + // returns existing writer + final FieldWriter writer = fields.get(handleCase(name)); + Preconditions.checkNotNull(writer); Review comment: With the default of `keysSorted = false` we can create the writer by default. I've updated this PR with that change. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org