axue-broadcom opened a new pull request, #19293:
URL: https://github.com/apache/iceberg/pull/19293

   `ArrowReader` ignored `schema.name-mapping.default`, so columns in Parquet 
files without field IDs (for example Hive imports or `add_files`) were matched 
by position and could come back under the wrong columns. This passes the 
table's default name mapping to the Parquet read builder, as the Spark readers 
do, and parses it once at construction so a malformed value fails early.
   
   Related: #19037 (spec: per-file name mapping fallback). This covers files 
with no field IDs only. #19073 (Parquet prototype for partial field IDs) is 
independent of this change.
   
   Test plan: read a file without field IDs stored in a different column order 
than the schema; read a file with field IDs while a mapping is set; filter on a 
mapped column; construct a reader with a malformed mapping.
   
   ---
   **AI Disclosure**
   - Model: Claude Sonnet 5.5
   - Platform/Tool: Claude Code
   - Human Oversight: partially reviewed
   - Prompt Summary: Make ArrowReader apply the table's default name mapping, 
then trim and restructure its tests based on review feedback.
   


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