Zu67 opened a new issue, #4625:
URL: https://github.com/apache/iceberg-python/issues/4625

   ### Feature Request / Improvement
   
   Follow-up from the discussion on #4617.
   
   `purge_table` reads manifest lists and manifests before it calls 
`delete_files`, through `snapshot.manifests()` and `fetch_manifest_entry` in 
`pyiceberg/catalog/__init__.py`. Neither path handles `FileNotFoundError`. With 
a REST catalog that removes files eagerly, for example during a commit or a 
server-side drop, some of those files can already be gone. Then the purge 
raises before cleanup starts, and the rest of the table's files are left behind.
   
   #4617 made `delete_files` treat an already-missing file as deleted. This 
issue is about the read side of the purge.
   
   **Proposal:** while collecting files to purge, a manifest list or manifest 
that no longer exists should be skipped and logged at debug level, and the 
purge should go on deleting everything it can still find. Other errors should 
still propagate.
   
   Happy to open a PR for this.
   


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