chenzl25 opened a new pull request, #1750:
URL: https://github.com/apache/iceberg-rust/pull/1750

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   - Closes #.
   
   ## What changes are included in this PR?
   
   - Updated the logic in `ArrowReader::get_arrow_projection_mask` to allow 
missing columns in the Parquet file, skipping them instead of returning an 
error. Missing columns are now gracefully skipped during projection, and the 
`RecordBatchTransformer` adds them later with NULL/default values
   
   ## Are these changes tested?
   
   Testing schema evolution:
   
   1. * Added an async test `test_schema_evolution_add_column` to verify that 
reading an old Parquet file (with only column 'a') using a newer schema (with 
columns 'a' and 'b') works as expected. The test checks that missing columns 
are filled with NULLs and the original data is preserved.


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