hmit opened a new pull request, #3354: URL: https://github.com/apache/avro/pull/3354
## What is the purpose of the change This pull request improves deserialization of data when using default `SpecificData` instance. Why? Often times, `SpecificDatumReader` and `ReflectDatumReader` are configured using the default `SpecificData` instance. This leads to deserialization error when reading fields with union type and inner logical type (see test-case). Deserialization works correctly when using the custom `SpecificData` instance stored in the `MODEL$` field of the schema class that `extends SpecificRecord`. The custom `SpecificData` has the necessary conversions stored to handle fields with union and logical types. The issue has been reported multiple times, notably in [AVRO-3989](linked JIRA). ## Verifying this change This change added tests and can be verified as follows: - *The added test passes when the code is present but fails when the code is removed* ## Documentation - Does this pull request introduce a new feature? (no) -- 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: dev-unsubscr...@avro.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org