Kellen Dye created AVRO-4197:
--------------------------------

             Summary: Schema bytes defaults are broken
                 Key: AVRO-4197
                 URL: https://issues.apache.org/jira/browse/AVRO-4197
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.12.0, 1.12.1
            Reporter: Kellen Dye


Schema byte default values are no longer correctly encoded into the schema.

```

    Schema.Field x = new Schema.Field(
        "bytesField",
        Schema.create(Schema.Type.BYTES),
        "my bytes field",
        new byte[] \{1, 2, 3}
    );
    Schema rSchema = Schema.createRecord("myRecord", "myRecord docs", "me", 
false, List.of(x));
    new GenericRecordBuilder(rSchema).build(); // exception thrown

```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to