ewoodbury opened a new issue, #3842:
URL: https://github.com/apache/iceberg-rust/issues/3842
### Is your feature request related to a problem or challenge?
With #3261 fixed, the Arrow reader applies `initial-default` to nested
fields that older data files don't have. Two cases still fail with
`FeatureUnsupported`:
1. Filters and equality deletes on such a field. If `point.y` was added with
default 0, an old file reads `point.y` as 0 where `point` is present and as
null where it isn't. The row filter and the pruning steps can't see which rows
have `point`, so the reader refuses the filter instead of returning wrong rows.
Filters on nested columns that a file does store also fail today. #2906 fixes
that, which leaves this case.
2. Non-null struct defaults. The spec allows `{}` as a struct's default,
with each child taking its own default ([Default
values](https://iceberg.apache.org/spec/#default-values)). iceberg-java rejects
these when it builds a schema, so Java writers don't produce them.
### Describe the solution you'd like
1. Evaluate the filter against the default where the parent struct is
present, and against null elsewhere. When both give the same answer (for
example `point.y = 5` with default 0), the filter becomes a constant and needs
nothing from the file.
2. Read a missing struct that has a `{}` default as a non-null struct built
from its children's defaults.
### Willingness to contribute
I can contribute to this feature 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]