<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Managed table conversion and vacuum in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/managed-table-conversion-and-vacuum/m-p/169547#M56123</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am looking for clarification about the 14-day rollback period after converting an external table to a managed table using:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALTER TABLE &amp;lt;table_name&amp;gt; SET MANAGED&lt;/DIV&gt;&lt;SPAN&gt;Databricks documentation states that the conversion can be rolled back within 14 days. It also says that, after this period, Predictive Optimization or a manual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;can delete data from the old external location to avoid unnecessary storage costs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I would appreciate clarification on these scenarios:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Running&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before day 14&lt;/STRONG&gt;&lt;BR /&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before the 14-day rollback period ends, does it affect only files in the new managed-table location? Or can it also delete files from the original external location?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Retention period shorter than 14 days&lt;/STRONG&gt;&lt;BR /&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to less than 14 days, for example 7 days:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the rollback window become 7 days?&lt;/LI&gt;&lt;LI&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on day 8, could it delete data needed for rollback, or it will just affects the data in the managed location?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Retention period longer than 14 days&lt;/STRONG&gt;&lt;BR /&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to more than 14 days, for example 20 days:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the rollback window remain 14 days or extend to 20 days?&lt;/LI&gt;&lt;LI&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on day 16, could it delete files from the original external location?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My assumptions are that the rollback period is fixed to 14 days so, if you run vacuum before that period will not touch the data in the external location no matter the retention-days. If the retention is more than 20 days and if I run a vacuum or PO kicks in, the data in old location will be deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tested these cases or received clarification from Databricks? I could not find details about how the rollback period interacts with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration, manual&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM, and Predictive Optimization.&lt;/P&gt;&lt;P&gt;Thanks for any guidance.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2026 09:27:31 GMT</pubDate>
    <dc:creator>Davide</dc:creator>
    <dc:date>2026-09-23T09:27:31Z</dc:date>
    <item>
      <title>Managed table conversion and vacuum</title>
      <link>https://community.databricks.com/t5/data-engineering/managed-table-conversion-and-vacuum/m-p/169547#M56123</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am looking for clarification about the 14-day rollback period after converting an external table to a managed table using:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALTER TABLE &amp;lt;table_name&amp;gt; SET MANAGED&lt;/DIV&gt;&lt;SPAN&gt;Databricks documentation states that the conversion can be rolled back within 14 days. It also says that, after this period, Predictive Optimization or a manual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;can delete data from the old external location to avoid unnecessary storage costs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I would appreciate clarification on these scenarios:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Running&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before day 14&lt;/STRONG&gt;&lt;BR /&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before the 14-day rollback period ends, does it affect only files in the new managed-table location? Or can it also delete files from the original external location?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Retention period shorter than 14 days&lt;/STRONG&gt;&lt;BR /&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to less than 14 days, for example 7 days:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the rollback window become 7 days?&lt;/LI&gt;&lt;LI&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on day 8, could it delete data needed for rollback, or it will just affects the data in the managed location?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Retention period longer than 14 days&lt;/STRONG&gt;&lt;BR /&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to more than 14 days, for example 20 days:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the rollback window remain 14 days or extend to 20 days?&lt;/LI&gt;&lt;LI&gt;If I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on day 16, could it delete files from the original external location?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My assumptions are that the rollback period is fixed to 14 days so, if you run vacuum before that period will not touch the data in the external location no matter the retention-days. If the retention is more than 20 days and if I run a vacuum or PO kicks in, the data in old location will be deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tested these cases or received clarification from Databricks? I could not find details about how the rollback period interacts with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;delta.deletedFileRetentionDuration, manual&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VACUUM, and Predictive Optimization.&lt;/P&gt;&lt;P&gt;Thanks for any guidance.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2026 09:27:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/managed-table-conversion-and-vacuum/m-p/169547#M56123</guid>
      <dc:creator>Davide</dc:creator>
      <dc:date>2026-09-23T09:27:31Z</dc:date>
    </item>
  </channel>
</rss>

