Anurag-S1ngh opened a new pull request, #4459:
URL: https://github.com/apache/iceberg-python/pull/4459

   <!-- Closes #2787 -->
   # Rationale for this change
   
   Tables can add existing data files with `add_files`, but there was no way to 
remove them without rewriting the table. Java exposes `DeleteFiles` for this, 
and PyIceberg had no equivalent.
   
   Add `Table.delete_files` and `Transaction.delete_files`, taking the full 
paths of live data files. Each path must be unique and referenced by the target 
branch. The call commits a copy-on-write delete snapshot and accepts snapshot 
properties and a branch, mirroring `add_files`.
   
   ## Are these changes tested?
   
   Yes. Unit tests remove files and check the remaining rows and snapshot 
properties, and cover duplicate paths and paths that are not referenced. 
`tests/table` passes.
   
   ## Are there any user-facing changes?
   
   Yes. A new `delete_files` API is available on tables and transactions.
   


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