Trying to vacuum a table that is constantly being "createdOrReplaced"

alonisser
Contributor II

and it seems that older data (From the "replaced" table) isn't being removed, long after the retention period

 

I'd be glad for clues on how to handle this

swethaNandan
Databricks Employee
Databricks Employee

Eligibility of a file for vacuum is based on the date that the file was ,asked for deletion and not on the creation timestamp of the file.
Delta table data files are deleted according to the time they have been logically removed from Delta’s transaction log plus retention hours, not their modification timestamps on the storage system.

Can you please confirm that the files were marked for removal before the retention period to make sure that they are eligible.

alonisser
Contributor II

Thanks, I know that, but the table history shows 30 days, but the actual data size and number of files and all other indicators , correlate to 170 days.