<?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: COMPUTE DELTA STATISTICS vs COMPUTE STATISTICS - Data Skipping in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/compute-delta-statistics-vs-compute-statistics-data-skipping/m-p/120334#M46142</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166046"&gt;@Sainath368&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Running ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE DELTA STATISTICS is a good practice after modifying data skipping stats columns on a Delta Lake table. However, this command doesn’t update query optimizer stats. For that, you’ll need to run ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE STATISTICS, which collects table and column-level statistics that help the query optimizer generate efficient query plans.&lt;BR /&gt;&lt;BR /&gt;So, the recommended approach will be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use COMPUTE DELTA STATISTICS after changing data skipping columns or table properties.&lt;/LI&gt;
&lt;LI&gt;Periodically, or after significant data changes, run COMPUTE STATISTICS to maintain accurate optimizer statistics.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you’re using Unity Catalog-managed tables, consider enabling predictive optimization to automate statistics collection and related maintenance. Just note that this applies only to Unity Catalog-managed tables.&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 15:18:37 GMT</pubDate>
    <dc:creator>Advika</dc:creator>
    <dc:date>2025-05-27T15:18:37Z</dc:date>
    <item>
      <title>COMPUTE DELTA STATISTICS vs COMPUTE STATISTICS - Data Skipping</title>
      <link>https://community.databricks.com/t5/data-engineering/compute-delta-statistics-vs-compute-statistics-data-skipping/m-p/120305#M46129</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I recently altered the data skipping stats columns on my Delta Lake table to optimize data skipping. Now, I’m wondering about the best practice for updating statistics:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is running ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE DELTA STATISTICS sufficient after such changes?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or is it necessary to run a full ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE STATISTICS to fully update statistics, especially for newly incoming data?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to understand whether COMPUTE DELTA STATISTICS alone keeps the table statistics fully up to date as new data arrives, or if I should regularly run the full COMPUTE STATISTICS command to ensure accuracy.&lt;/P&gt;&lt;P&gt;Thanks in advance for your guidance!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 11:05:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/compute-delta-statistics-vs-compute-statistics-data-skipping/m-p/120305#M46129</guid>
      <dc:creator>Sainath368</dc:creator>
      <dc:date>2025-05-27T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE DELTA STATISTICS vs COMPUTE STATISTICS - Data Skipping</title>
      <link>https://community.databricks.com/t5/data-engineering/compute-delta-statistics-vs-compute-statistics-data-skipping/m-p/120334#M46142</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166046"&gt;@Sainath368&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Running ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE DELTA STATISTICS is a good practice after modifying data skipping stats columns on a Delta Lake table. However, this command doesn’t update query optimizer stats. For that, you’ll need to run ANALYZE TABLE &amp;lt;table_name&amp;gt; COMPUTE STATISTICS, which collects table and column-level statistics that help the query optimizer generate efficient query plans.&lt;BR /&gt;&lt;BR /&gt;So, the recommended approach will be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use COMPUTE DELTA STATISTICS after changing data skipping columns or table properties.&lt;/LI&gt;
&lt;LI&gt;Periodically, or after significant data changes, run COMPUTE STATISTICS to maintain accurate optimizer statistics.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you’re using Unity Catalog-managed tables, consider enabling predictive optimization to automate statistics collection and related maintenance. Just note that this applies only to Unity Catalog-managed tables.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 15:18:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/compute-delta-statistics-vs-compute-statistics-data-skipping/m-p/120334#M46142</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-05-27T15:18:37Z</dc:date>
    </item>
  </channel>
</rss>

