You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "zhangxinyao88 (via GitHub)" <gi...@apache.org> on 2026/09/26 23:30:13 UTC
[PR] GH-3792: Prefer exact Avro field names over aliases [parquet-java]
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: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] GH-3792: Prefer exact Avro field names over aliases [parquet-java]
Posted by "zhangxinyao88 (via GitHub)" <gi...@apache.org>.
zhangxinyao88 commented on PR #3822:
URL: https://github.com/apache/parquet-java/pull/3822#issuecomment-5903031283
Closing in favor of #3793, which already contains the same fix and end-to-end coverage for both converter paths. I missed the linked PR when opening this one.
--
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: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] GH-3792: Prefer exact Avro field names over aliases [parquet-java]
Posted by "zhangxinyao88 (via GitHub)" <gi...@apache.org>.
zhangxinyao88 closed pull request #3822: GH-3792: Prefer exact Avro field names over aliases
URL: https://github.com/apache/parquet-java/pull/3822
--
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: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org