Reo-LEI commented on a change in pull request #3240:
URL: https://github.com/apache/iceberg/pull/3240#discussion_r725774614
##########
File path: api/src/main/java/org/apache/iceberg/util/StructProjection.java
##########
@@ -155,6 +155,10 @@ public int size() {
@Override
public <T> T get(int pos, Class<T> javaClass) {
+ if (struct == null) {
+ return null;
Review comment:
@rdblue I think this is trying to fix the NPE when projecting the nested
required field while providing a null value for the parent struct as @openinx
mentioned on https://github.com/apache/iceberg/issues/2738#issue-929968590
--
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]