kellen commented on PR #2529:
URL: https://github.com/apache/avro/pull/2529#issuecomment-3498590485
Hi, this PR changed the default value encoding of `bytes`, which I presume
was an unintentional side-effect. It results in incorrect values being encoded
to schemas.
To reproduce:
```
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
```
I can open an avro issue as soon as the ASF jira account is approved...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]