mikepapadim opened a new issue, #18630:
URL: https://github.com/apache/iceberg/issues/18630

   `FileMetadata.deleteFileBuilder(spec).copy(deleteFile)` copies every field 
except `equalityFieldIds`. A copied equality-delete file commits fine, but the 
next `planFiles()` fails with an NPE in 
`DeleteFileIndex.Builder.loadDeleteFiles` (`Set.copyOf(null)`).
   
   Repro (1.12.0 and main): 
`deleteFileBuilder(spec).copy(eqDelete).withPath(newPath).build()`, then add it 
with `newRowDelta().addDeletes(...)` and run `newScan().planFiles()`.
   
   Workaround: call `.ofEqualityDeletes(ids)` after `.copy()`, as 
`RewriteTablePathUtil` already does.


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