RussellSpitzer commented on a change in pull request #1744:
URL: https://github.com/apache/iceberg/pull/1744#discussion_r520185320



##########
File path: api/src/main/java/org/apache/iceberg/types/GetProjectedIds.java
##########
@@ -39,7 +39,7 @@
 
   @Override
   public Set<Integer> field(Types.NestedField field, Set<Integer> fieldResult) 
{
-    if (fieldResult == null) {
+    if (fieldResult == null || isEmptyStruct(field)) {

Review comment:
       The error here previously,  is that an empty struct has no fields, since 
it has no fields we never would ad an ID representing it (normally this happens 
by referring to subfields)




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

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