RussellSpitzer edited a comment on issue #2793: URL: https://github.com/apache/iceberg/issues/2793#issuecomment-876381171
You can never expire the current snapshot, so there is never a way that expire snapshots can remove files that are needed to read the current state of the table. It can only remove your ability to query previous versions of the tables. If a file was left behind either expire snapshots had an error during deletes or that file was never part of the table. Your example could not happen as described. RemoveOrphanFiles works similarly but doesn't change snapshots at all so it would not be able to remove the current snapshot either. If it detected that the table owned no files it would delete everything. If you are now receiving query errors it is due to the string matching error I discussed previously where the metadata stored paths do not string match the actual fs.list paths. If when querying the table now you don't see any errors then those files were never part of the table. -- 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]
