Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 29, 2020
1 parent c9656f7 commit b6163df
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,19 +199,6 @@ protected Schema.Field schemaFieldForWriter(BeanProperty prop, boolean optional)
writerSchema = AvroSchemaHelper.unionWithNull(writerSchema);
}
}
/*
JsonNode defaultValue = parseJson(prop.getMetadata().getDefaultValue());
if ((defaultValue == null) && _cfgAddNullDefaults
&& writerSchema.getType() == Type.UNION
&& writerSchema.getIndexNamed(Type.NULL.getName()) != null) {
defaultValue = NullNode.getInstance();
}
writerSchema = reorderUnionToMatchDefaultType(writerSchema, defaultValue);
String name = prop.getName();
Schema.Field field = new Schema.Field(name, writerSchema, prop.getMetadata().getDescription(),
JacksonUtils.toObject(defaultValue));
*/
JsonNode defaultValue = AvroSchemaHelper.parseDefaultValue(prop.getMetadata().getDefaultValue());

// [dataformats-binary#145]: induce `null` default value, if compatible
Expand Down

0 comments on commit b6163df

Please sign in to comment.