Myths about vacuum command

sangram11
Databricks Partner

I identified some myths while working with vacuum command spark 3.5.x.

1. vacuum command is not working with days. Instead it's retain clause is asking explicitly to supply values in hours. I tried many times, and it is throwing parse syntax error (why ???).

sangram11_0-1730255825227.png

2. You cannot execute vacuum command if delta.enableChangeDataFeed is enabled. Because it cannot remove files from _change_data folder if it contains parquet files in it.

sangram11_1-1730256066071.png

So, your table history is not deleted by vacuum command is CDF is enabled.

Let me know if you want to pass me some knowledge on vacuum command. Because I feel it is not doing its work as expected.