Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.8.1, 1.8.2
Description
here is a unit test to reproduce the issue:
package org.apache.avro; import java.nio.ByteBuffer; import org.junit.Assert; import org.junit.Test; public class TestFixed { @Test public void testFixedDefaultValueDrop() { Schema md5 = SchemaBuilder.builder().fixed("MD5").size(16); Schema frec = SchemaBuilder.builder().record("test") .fields().name("hash").type(md5).withDefault(ByteBuffer.wrap(new byte[16])).endRecord(); Schema.Field field = frec.getField("hash"); Assert.assertNotNull(field.defaultVal()); } }
Attachments
Issue Links
- blocks
-
AVRO-1723 Add support for forward declarations in avro IDL
- Resolved