ResolvingGrammarGenerator.encode(
encoder, field.schema(), defaultJsonValue);
encoder.flush();
decoder = DecoderFactory.get().binaryDecoder(
baos.toByteArray(), decoder);
defaultValue = new GenericDatumReader(
field.schema()).read(null, decoder);
defaultSchemaValues.putIfAbsent(field.pos(), defaultValue);
}
// Make a deep copy of the default value so that subsequent mutations