hutiefang76 opened a new pull request, #4060:
URL: https://github.com/apache/avro/pull/4060

   ## What is the purpose of the change
   
   Fix [AVRO-4215](https://issues.apache.org/jira/browse/AVRO-4215). When a 
writer union resolves to a reader logical type, its selected branch already 
applies the conversion. Converting the union result again passes a LocalDate to 
a conversion expecting an Integer. Let the selected branch own the conversion, 
forwarding any specific-record field conversion to that branch.
   
   ## Verifying this change
   
   Added regressions for fast and resolving readers, nullable unions, missing 
registered conversions, and an explicit field conversion counter. On unchanged 
main, the implicit and explicit conversion cases both failed; all seven tests 
pass with the patch. The explicit field test invokes FastReaderBuilder directly 
and verifies one field conversion and zero registered conversions. Each test 
uses an isolated data model.
   
   The official Java SDK `mvn clean test` completed successfully across all 26 
reactor modules: Surefire reported 4,259 tests, with 8 existing skips and no 
failures/errors. Tests ran on JDK 17 with the required JDK 11/17/21 toolchains 
available.
   
   ## Documentation
   
   No new public API or feature; no documentation change required.
   
   AI assistance: DeepSeek and Codex helped implement, review and validate this 
patch. This description was AI-generated.
   


-- 
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]

Reply via email to