Govindarajan-D opened a new issue, #16123:
URL: https://github.com/apache/iceberg/issues/16123

   ### Apache Iceberg version
   
   None
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   In StructProjection.java, for nested Struct Types, allowMissing is not 
passed to the constructor there by making any optional fields in nested struct 
to throw IllegalArgumentException instead of it being made as null.
   
   ```
     case STRUCT:                                                               
                                                                                
                                                                 
         nestedProjections[pos] =
             new StructProjection(                                              
                                                                                
                                                                 
                 dataField.type().asStructType(), 
projectedField.type().asStructType());
         // allowMissing is not forwarded                                       
                                                                                
                                                                 
         break;
   ```
   
   Ref: 
https://github.com/apache/iceberg/blob/bac514ab4e72f0a75bf045c63a66009a0115022e/api/src/main/java/org/apache/iceberg/util/StructProjection.java#L126-L127
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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

Reply via email to