<?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 Re: How to check a specific table for it's VACUUM retention period in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107467#M2860</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 19:36:53 GMT</pubDate>
    <dc:creator>WWoman</dc:creator>
    <dc:date>2025-01-28T19:36:53Z</dc:date>
    <item>
      <title>How to check a specific table for it's VACUUM retention period</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107449#M2857</link>
      <description>&lt;P&gt;I'm looking for a way to query for the VACUUM retention period for a specific table. This does not show up with DESSCRIBE DETAIL &amp;lt;table_name&amp;gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:14:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107449#M2857</guid>
      <dc:creator>WWoman</dc:creator>
      <dc:date>2025-01-28T17:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific table for it's VACUUM retention period</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107466#M2859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/92373"&gt;@WWoman&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;the default retention period is 7 days and as&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/delta-vacuum" target="_self"&gt; per documentation&lt;/A&gt; it is regulated by&amp;nbsp;&lt;SPAN&gt;'delta.deletedFileRetentionDuration' table property:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_0-1738092227320.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14392i0AB7289C19E2E269/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_0-1738092227320.png" alt="filipniziol_0-1738092227320.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If there is no&amp;nbsp;&lt;SPAN&gt;delta.deletedFileRetentionDuration table property it means it uses the default, so 7 days.&lt;BR /&gt;If you set the&amp;nbsp;delta.deletedFileRetentionDuration like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ALTER TABLE dev.bronze.source_table SET TBLPROPERTIES ('delta.deletedFileRetentionDuration' = '30 days');&lt;/LI-CODE&gt;
&lt;P&gt;you will be able to check the property by running&amp;nbsp;&lt;SPAN&gt;SHOW&lt;/SPAN&gt; &lt;SPAN&gt;TBLPROPERTIES:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SHOW TBLPROPERTIES dev.bronze.source_table;&lt;/LI-CODE&gt;
&lt;P&gt;The result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_1-1738092443138.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14393iA6038F5FA15DF83B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_1-1738092443138.png" alt="filipniziol_1-1738092443138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, one can always run the VACUUM overwriting the defaults, so if you have any process that explicitly states the number of retained hours, you won't be able to check this at table properties level:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_2-1738092686127.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14394i453C882A532C27F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_2-1738092686127.png" alt="filipniziol_2-1738092686127.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:31:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107466#M2859</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2025-01-28T19:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific table for it's VACUUM retention period</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107467#M2860</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:36:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107467#M2860</guid>
      <dc:creator>WWoman</dc:creator>
      <dc:date>2025-01-28T19:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific table for it's VACUUM retention period</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107468#M2861</link>
      <description>&lt;P&gt;No problem, glad it was helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:38:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-check-a-specific-table-for-it-s-vacuum-retention-period/m-p/107468#M2861</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2025-01-28T19:38:54Z</dc:date>
    </item>
  </channel>
</rss>

