Description
The org.apache.avro.Schema.Field class contains attribute doc. However, it is not included in the equals method, which results in problems with schema evolution.
This test currently fails, because both Fields are considered equal.
@Test public void testFieldEquality() { Schema schema = Schema.createRecord("r", "doc", "namespace", false); Field fieldWithDoc = new Field("f", schema, "doc"); Field fieldWithoutDoc = new Field("f", schema); assertNotEquals(fieldWithDoc, fieldWithoutDoc); }