I performed a POC where i have to check that can we create a new delta table which contains only particular version of data of normal delta table without copying the data and if we make changes or perform any operation(insert/delete/truncate/records) or running a vacuum in the normal delta table. It should not impact the new delta table.
I used the databricks shallow clone to create the new delta table from the normal delta table. This operation did not copy the data of a particular version in new delta table. It was referencing the same file which normal table was using and also performed some operations like insert, delete, truncate and vacuum on normal delta table but it did not impact the new delta table created by using shallow clone.
Databricks Concept says:-
1) Data of clone table(new delta table) may be impacted of deleted if we perform any operation(like vacuum) in the normal table.
2) Until and unless file is referenced by any delta table, it won't delete the file.
3) Also after running the Vacuum, it will not delete the data if it is referenced by delta table even after the retention period because it deletes only old data which is not referenced by a delta table.
So my question is Vacuum or any other operation impact the clone table or not ? Because the concept 2 says , it won't impact. Is my understanding correct?