JeonDaehong opened a new pull request, #3835:
URL: https://github.com/apache/iceberg-rust/pull/3835
## Which issue does this PR close?
- Closes #3834.
## What changes are included in this PR?
`EqualityDeleteWriter` now writes an equality field nested in a struct under
its parent struct, keeping the struct's nulls and only the children that lead
to an equality field. That is the layout Java writes and `DeleteFilter` reads.
`projected_arrow_schema_ref()` returns this schema, so a `ParquetWriterBuilder`
built from it writes the nested layout. Top-level equality fields are written
as before.
`RecordBatchProjector` still rejects float, struct, map and list fields as
before; its batch methods are only used by its own tests now. Delete files from
earlier versions still load, since the loader reads both layouts (#3453).
## Are these changes tested?
`test_equality_delete_keeps_parent_struct_of_nested_field` writes a delete
file on `s.g` and reads it back as `s: {g}`, with a null `s` kept. The loader
tests cover the old top-level layout with a file written directly. I also read
files from this writer with iceberg 1.10.0 the way `DeleteFilter` does: `s.g =
7` reads as `{g: 7}` for an optional and a required `s`, where main gives `s =
null` and `Missing required field: s`.
## AI Disclosure
I used Claude Code to find this, write the change and run the tests.
--
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]