akhilesh-delphix commented on PR #4459:
URL: https://github.com/apache/iceberg-python/pull/4459#issuecomment-7063034734
@Anurag-S1ngh
`delete_files` is the counterpart of `add_files` for data files, and I have
a related need on the delete-file side. I'd like to ask whether it fits here,
or belongs in a follow-up.
**Use case:** I copy a table's data files to a new table location, and the
source has merge-on-read position delete files. I rewrite the file_path column
inside each position delete file so that it points at the copied data file
path, and upload the result. I then need to register those delete files in the
target table's metadata (a delete manifest and a snapshot), so readers apply
them.
**The gap:** `add_files` registers data files only. As far as I can tell
from reading 0.12.0, the manifest writers only produce DATA manifests, so there
is no way to register an existing delete file. In Java this is
`RowDelta.addDeletes(DeleteFile)`.
--
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]