You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "mikepapadim (via GitHub)" <gi...@apache.org> on 2026/10/24 09:36:37 UTC
[I] Core: FileMetadata.Builder.copy(DeleteFile) drops equalityFieldIds [iceberg]
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org