sfc-gh-rxing opened a new issue, #967:
URL: https://github.com/apache/polaris/issues/967

   ### Describe the bug
   
   I noticed that the current implementation of `dropTableWithPurge` doesn’t 
delete snapshots. I took a look into the `TaskExecution`,  
`TableCleanupTaskHandler`, `ManifestFileCleanupTaskHandler`, and it appears 
that only the metadata JSON files, manifest files, and data files are removed.
   
   ### To Reproduce
   
   1. Launch Polaris locally
   2. Create a Polaris catalog: polaris_catalog
   3. Configure Spark to connect to the local Polaris instance
   4. Create a namespace: `create namespace ns;`
   5. Create an Iceberg table: `create table ns.t1 (id INT, name STRING);`
   6. Insert some data into it: `insert into ns.t1 values(1, 'XJKDC')`
   7. Do drop table with purge: `drop table ns.t1 purge;`
   8. Check the s3 bucket to see if there are some manifest lists file 
remaining.
   
   ### Actual Behavior
   
   The snapshots files (manifest list files) are not deleted.
   
   ### Expected Behavior
   
   The table location should not have any files in it after we drop the table 
with purge.
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


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

Reply via email to