stevenzwu commented on issue #7507:
URL: https://github.com/apache/iceberg/issues/7507#issuecomment-1535003024
then the Projection class doesn't have to deal with null wrapped value. e.g.
```
public <T> T get(int pos, Class<T> javaClass) {
if (struct == null) {
// Return a null struct when projecting a nested required field from
an optional struct.
// See more details in issue #2738.
return null;
}
```
it also mirroring the original struct more faithfully.
```
Struct(1, null) -> StructProjection(1, null) | instead of
StructProjection(1, StructProjection(null))
```
--
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]