<?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: Seeing history even after vacuuming the Delta table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65536#M32833</link>
    <description>&lt;P&gt;No, that's wrong. VACUUM&lt;SPAN&gt;&amp;nbsp;removes all files from the table directory that are not managed by Delta, as well as data files that are no longer in the latest state of the transaction log for the table and are older than a retention threshold.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/delta-vacuum" target="_blank" rel="noopener"&gt;VACUUM - Azure Databricks - Databricks SQL | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 19:06:25 GMT</pubDate>
    <dc:creator>Kavi_007</dc:creator>
    <dc:date>2024-04-04T19:06:25Z</dc:date>
    <item>
      <title>Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65234#M32753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to do the vacuum on a Delta table within a unity catalog. The default retention is 7 days. Though I vacuum the table, I'm able to see the history beyond 7 days. Tried restarting the cluster but still not working. What would be the fix ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 19:44:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65234#M32753</guid>
      <dc:creator>Kavi_007</dc:creator>
      <dc:date>2024-04-01T19:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65463#M32816</link>
      <description>&lt;P&gt;Yes, below are the commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VACUUM &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;dev-sales-catalog&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;silver&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;orders&amp;nbsp; &amp;nbsp;-- This does not do vaccum&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavi_007_0-1712201764703.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6904iE7BE36789F571453/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kavi_007_0-1712201764703.png" alt="Kavi_007_0-1712201764703.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;FROM&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;dev-sales-catalog&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;silver&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;orders&lt;/SPAN&gt; &lt;SPAN&gt;VERSION&lt;/SPAN&gt; &lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; OF &lt;/SPAN&gt;&lt;SPAN&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;nbsp; This still does bring the results with the version which is 10 days older.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;0&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavi_007_1-1712201816573.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6905iF56684A6870C94F1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kavi_007_1-1712201816573.png" alt="Kavi_007_1-1712201816573.png" /&gt;&lt;/span&gt;&lt;P&gt;History of the table:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavi_007_3-1712201997933.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6907i5AA07C7D12B609DE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kavi_007_3-1712201997933.png" alt="Kavi_007_3-1712201997933.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Apr 2024 03:40:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65463#M32816</guid>
      <dc:creator>Kavi_007</dc:creator>
      <dc:date>2024-04-04T03:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65519#M32829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;- Could you please check this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:06:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65519#M32829</guid>
      <dc:creator>Kavi_007</dc:creator>
      <dc:date>2024-04-04T14:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65523#M32830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/96844"&gt;@Kavi_007&lt;/a&gt;&amp;nbsp;, Vacuum only deletes stale files i.e. the files that are not being tracked by delta log. If you perform a delete operation, then the files will become stale and will be cleared after 7 days. From the delta history of your table, I do not see any delete operation. So, vacuum will not delete any file.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:54:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65523#M32830</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2024-04-04T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65536#M32833</link>
      <description>&lt;P&gt;No, that's wrong. VACUUM&lt;SPAN&gt;&amp;nbsp;removes all files from the table directory that are not managed by Delta, as well as data files that are no longer in the latest state of the transaction log for the table and are older than a retention threshold.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/delta-vacuum" target="_blank" rel="noopener"&gt;VACUUM - Azure Databricks - Databricks SQL | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 19:06:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65536#M32833</guid>
      <dc:creator>Kavi_007</dc:creator>
      <dc:date>2024-04-04T19:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65537#M32834</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/75976"&gt;@Lakshay&lt;/a&gt;&amp;nbsp;- you are right. I performed a couple of delete statements and then did VACCUM. It worked now. Thanks for your help !&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 20:00:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65537#M32834</guid>
      <dc:creator>Kavi_007</dc:creator>
      <dc:date>2024-04-04T20:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Seeing history even after vacuuming the Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65624#M32866</link>
      <description>&lt;P&gt;Happy to help!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:38:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seeing-history-even-after-vacuuming-the-delta-table/m-p/65624#M32866</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2024-04-05T16:38:31Z</dc:date>
    </item>
  </channel>
</rss>

