zhangxinyao88 opened a new pull request, #3822:
URL: https://github.com/apache/parquet-java/pull/3822

   ### Rationale for this change
   
   The compatibility converter continued searching aliases after finding an 
exact field match. A Parquet column could therefore be materialized into a 
different Avro field whose alias had the same name.
   
   ### What changes are included in this PR?
   
   Return an exact Avro field match before checking aliases in 
`AvroIndexedRecordConverter`. Add coverage for exact-name precedence and alias 
fallback.
   
   ### Are these changes tested?
   
   - `mvn -pl parquet-avro test`
   - `mvn spotless:check`
   
   ### Are there any user-facing changes?
   
   Fixes incorrect field mapping when a reader schema contains an exact field 
name and another field with that name as an alias.
   
   Closes #3792


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to