JeonDaehong opened a new issue, #3834:
URL: https://github.com/apache/iceberg-rust/issues/3834

   ### Apache Iceberg Rust version
   
   main (ea17ba2d5)
   
   ### Describe the bug
   
   When an equality id names a field nested in a struct, `EqualityDeleteWriter` 
writes that field as a top-level column of the delete file. Java finds equality 
delete columns by field id under their parent struct (`DeleteFilter` projects 
the delete file with the table schema pruned to the equality ids), so it 
doesn't see the column there. iceberg-rust reads both layouts since #3453, so 
this only shows up when another engine reads the table.
   
   ### To Reproduce
   
   Table `1: id long, 2: s struct<4: g long>`, equality delete on `[4]` with 
one row `s.g = 7`, written with `EqualityDeleteWriter`. Read back with iceberg 
1.10.0 the way `DeleteFilter` does (`Parquet.read(file).project(deleteSchema)` 
with `GenericParquetReaders`):
   
   - optional `s`: the delete row reads as `s = null`, so Java deletes the rows 
whose `s` is null and keeps the one with `g = 7`
   - required `s`: `IllegalArgumentException: Missing required field: s`
   
   The same row written as `s: {g: 7}` reads as `{g: 7}` in both cases.
   
   ### Expected behavior
   
   The delete file keeps `g` under `s`, like Java's equality delete writers.
   
   ### Willingness to contribute
   
   I can contribute a fix for this bug independently
   


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