bharos commented on issue #15826:
URL: https://github.com/apache/iceberg/issues/15826#issuecomment-4166145977

   The crash is in DeleteFilter.fileProjection() — 
tableSchema.asStruct().field(fieldId) only resolves top-level fields, so nested 
equality delete fields (like `address.zip`) return null and the 
Preconditions.checkArgument throws exception.
   
   There's an existing [TODO on 
DeleteFilter.java](https://github.com/apache/iceberg/blob/da0ad6a7cc2632594f04cb7872bc6f5fb158fd6b/data/src/main/java/org/apache/iceberg/data/DeleteFilter.java#L305)
 acknowledging this: "support adding nested columns. this will currently fail 
when finding nested columns to add", so this is a known limitation.
   
   I think the fix would use tableSchema.findField(fieldId) to locate the 
nested field, then reconstruct the parent struct path when merging it into the 
projected schema ?


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