<?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 Default delta log retention interval is different than in documentation? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/default-delta-log-retention-interval-is-different-than-in/m-p/37115#M26260</link>
    <description>&lt;P&gt;It notes in the &lt;A href="https://docs.databricks.com/delta/history.html#configure-data-retention-for-time-travel-queries" target="_self"&gt;documentation here&lt;/A&gt;&amp;nbsp;that the default delta log retention interval is 30 days - however when I create checkpoints in the delta log to trigger the cleanup - historical records from 30 days aren't removed; i.e. current day checkpoint is at 2023-07-06 and historical records from 2023-04-27 are still remaining.&lt;/P&gt;&lt;P&gt;It's not until I specifically set:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&amp;nbsp;&amp;lt;table&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SET&lt;/SPAN&gt; &lt;SPAN&gt;TBLPROPERTIES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'delta.logRetentionDuration'&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'interval 30 days'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;that after creating checkpoints those records from 2023-04-27 are removed as expected. Is there a different default log retention date than what is mentioned here? Or some other hidden process that I am missing?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Jul 2023 20:43:57 GMT</pubDate>
    <dc:creator>442027</dc:creator>
    <dc:date>2023-07-06T20:43:57Z</dc:date>
    <item>
      <title>Default delta log retention interval is different than in documentation?</title>
      <link>https://community.databricks.com/t5/data-engineering/default-delta-log-retention-interval-is-different-than-in/m-p/37115#M26260</link>
      <description>&lt;P&gt;It notes in the &lt;A href="https://docs.databricks.com/delta/history.html#configure-data-retention-for-time-travel-queries" target="_self"&gt;documentation here&lt;/A&gt;&amp;nbsp;that the default delta log retention interval is 30 days - however when I create checkpoints in the delta log to trigger the cleanup - historical records from 30 days aren't removed; i.e. current day checkpoint is at 2023-07-06 and historical records from 2023-04-27 are still remaining.&lt;/P&gt;&lt;P&gt;It's not until I specifically set:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&amp;nbsp;&amp;lt;table&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SET&lt;/SPAN&gt; &lt;SPAN&gt;TBLPROPERTIES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'delta.logRetentionDuration'&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'interval 30 days'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;that after creating checkpoints those records from 2023-04-27 are removed as expected. Is there a different default log retention date than what is mentioned here? Or some other hidden process that I am missing?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jul 2023 20:43:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/default-delta-log-retention-interval-is-different-than-in/m-p/37115#M26260</guid>
      <dc:creator>442027</dc:creator>
      <dc:date>2023-07-06T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Default delta log retention interval is different than in documentation?</title>
      <link>https://community.databricks.com/t5/data-engineering/default-delta-log-retention-interval-is-different-than-in/m-p/58373#M31116</link>
      <description>&lt;P&gt;you need to set&amp;nbsp;SET TBLPROPERTIES ('delta.checkpointRetentionDuration' = '30 days',)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 23:50:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/default-delta-log-retention-interval-is-different-than-in/m-p/58373#M31116</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2024-01-24T23:50:23Z</dc:date>
    </item>
  </channel>
</rss>

