<?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 Delta Table Log History not Updating in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-table-log-history-not-updating/m-p/91088#M38077</link>
    <description>&lt;P&gt;I am running into an issue related to my Delta Log and an old version. I currently have default delta settings for&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delta.checkpointInterval (10 commits as this table was created prior to DBR 11.1), delta.deletedFileRetentionDuration (7 days), and&amp;nbsp;delta.logRetentionDuration (30 days). I have an older table (created 12/8/2022) with the following delta history:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_4-1726759906146.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11352i820EA18D22EA2245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_4-1726759906146.png" alt="Dave_Nithio_4-1726759906146.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I ran a `REPLACE TABLE AS SELECT` function to update my partitioning strategy which removed all logs prior to version 10 where my previous checkpoint was. This created a checkpoint at Version 16 and left my delta history as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_2-1726759822867.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11351i5B4084CDF6CD00E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_2-1726759822867.png" alt="Dave_Nithio_2-1726759822867.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then attempted to restore to Version 16 to see if I could still time travel to that point. It was successful and deleted all logs prior to the new checkpoint at Version 16:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_1-1726759722776.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11350i3C2D3A18868BC871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_1-1726759722776.png" alt="Dave_Nithio_1-1726759722776.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Again this was as expected. The issue is, I then ran REPLACE TABLE AS SELECT again assuming that I would then delete any logs prior to my new checkpoint, meaning version 16 would no longer exist in the logs as it is well beyond my log retention. This was not the case though. I attempted to run multiple commits against the table which resulted in a few more checkpoints, but version 16 has not been removed from my delta history.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_5-1726760080078.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11353i0B4A7E8F0938773B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_5-1726760080078.png" alt="Dave_Nithio_5-1726760080078.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_6-1726760100546.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11354iBF79ACA7E07A4C18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_6-1726760100546.png" alt="Dave_Nithio_6-1726760100546.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am wondering if is it related to&amp;nbsp;deletedFileRetentionDuration&amp;nbsp;delta setting.&amp;nbsp;Maybe version 16 is referenced in newer files (due to&amp;nbsp;RESTORE) so it will continue to maintain that version in the delta log? If so, should I expect it to be deleted 7 days after today?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Sep 2024 15:36:14 GMT</pubDate>
    <dc:creator>Dave_Nithio</dc:creator>
    <dc:date>2024-09-19T15:36:14Z</dc:date>
    <item>
      <title>Delta Table Log History not Updating</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-table-log-history-not-updating/m-p/91088#M38077</link>
      <description>&lt;P&gt;I am running into an issue related to my Delta Log and an old version. I currently have default delta settings for&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delta.checkpointInterval (10 commits as this table was created prior to DBR 11.1), delta.deletedFileRetentionDuration (7 days), and&amp;nbsp;delta.logRetentionDuration (30 days). I have an older table (created 12/8/2022) with the following delta history:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_4-1726759906146.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11352i820EA18D22EA2245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_4-1726759906146.png" alt="Dave_Nithio_4-1726759906146.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I ran a `REPLACE TABLE AS SELECT` function to update my partitioning strategy which removed all logs prior to version 10 where my previous checkpoint was. This created a checkpoint at Version 16 and left my delta history as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_2-1726759822867.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11351i5B4084CDF6CD00E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_2-1726759822867.png" alt="Dave_Nithio_2-1726759822867.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then attempted to restore to Version 16 to see if I could still time travel to that point. It was successful and deleted all logs prior to the new checkpoint at Version 16:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_1-1726759722776.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11350i3C2D3A18868BC871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_1-1726759722776.png" alt="Dave_Nithio_1-1726759722776.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Again this was as expected. The issue is, I then ran REPLACE TABLE AS SELECT again assuming that I would then delete any logs prior to my new checkpoint, meaning version 16 would no longer exist in the logs as it is well beyond my log retention. This was not the case though. I attempted to run multiple commits against the table which resulted in a few more checkpoints, but version 16 has not been removed from my delta history.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_5-1726760080078.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11353i0B4A7E8F0938773B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_5-1726760080078.png" alt="Dave_Nithio_5-1726760080078.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_6-1726760100546.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11354iBF79ACA7E07A4C18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_6-1726760100546.png" alt="Dave_Nithio_6-1726760100546.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am wondering if is it related to&amp;nbsp;deletedFileRetentionDuration&amp;nbsp;delta setting.&amp;nbsp;Maybe version 16 is referenced in newer files (due to&amp;nbsp;RESTORE) so it will continue to maintain that version in the delta log? If so, should I expect it to be deleted 7 days after today?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:36:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-table-log-history-not-updating/m-p/91088#M38077</guid>
      <dc:creator>Dave_Nithio</dc:creator>
      <dc:date>2024-09-19T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Table Log History not Updating</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-table-log-history-not-updating/m-p/91145#M38095</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/48810"&gt;@Dave_Nithio&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am running into an issue related to my Delta Log and an old version. I currently have default delta settings for&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delta.checkpointInterval (10 commits as this table was created prior to DBR 11.1), delta.deletedFileRetentionDuration (7 days), and&amp;nbsp;delta.logRetentionDuration (30 days). I have an older table (created 12/8/2022) with the following delta history:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_4-1726759906146.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11352i820EA18D22EA2245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_4-1726759906146.png" alt="Dave_Nithio_4-1726759906146.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I ran a `REPLACE TABLE AS SELECT` function to update my partitioning strategy which removed all logs prior to version 10 where my previous checkpoint was. This created a checkpoint at Version 16 and left my delta history as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_2-1726759822867.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11351i5B4084CDF6CD00E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_2-1726759822867.png" alt="Dave_Nithio_2-1726759822867.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then attempted to restore to Version 16 to see if I could still time travel to that point. It was successful and deleted all logs prior to the new checkpoint at Version 16:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_1-1726759722776.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11350i3C2D3A18868BC871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_1-1726759722776.png" alt="Dave_Nithio_1-1726759722776.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Again this was as expected. The issue is, I then ran REPLACE TABLE AS SELECT again assuming that I would then delete any logs prior to my new checkpoint, meaning version 16 would no longer exist in the logs as it is well beyond my log retention. This was not the case though. I attempted to run multiple commits against the table which resulted in a few more checkpoints, but version 16 has not been removed from my delta history.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_5-1726760080078.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11353i0B4A7E8F0938773B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_5-1726760080078.png" alt="Dave_Nithio_5-1726760080078.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Nithio_6-1726760100546.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11354iBF79ACA7E07A4C18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Nithio_6-1726760100546.png" alt="Dave_Nithio_6-1726760100546.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am wondering if is it related to&amp;nbsp;deletedFileRetentionDuration&amp;nbsp;delta setting.&amp;nbsp;Maybe version 16 is referenced in newer files (due to&amp;nbsp;RESTORE) so it will continue to maintain that version in the delta log? If so, should I expect it to be deleted 7 days after today?&amp;nbsp;&lt;A href="https://www.aarp-membership.com" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;AarpMembership&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 05:47:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-table-log-history-not-updating/m-p/91145#M38095</guid>
      <dc:creator>jennie258fitz</dc:creator>
      <dc:date>2024-09-20T05:47:15Z</dc:date>
    </item>
  </channel>
</rss>

