<?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 ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS silently does not update column stats on DBR 15 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/analyze-table-compute-statistics-for-all-columns-silently-does/m-p/158559#M54738</link>
    <description>&lt;P&gt;Hi Databricks Support,&lt;/P&gt;&lt;P&gt;We need help confirming whether this is a known DBR 15.4 LTS bug or an unsupported/configuration-specific behavior.&lt;/P&gt;&lt;P&gt;Summary&lt;/P&gt;&lt;P&gt;On a Databricks Runtime 15.4.40 Photon job cluster, `ANALYZE TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; COMPUTE STATISTICS FOR ALL COLUMNS` completes successfully but does not update table-level or column-level optimizer statistics for a Unity Catalog managed Delta table.&lt;/P&gt;&lt;P&gt;The same SQL run from a DBSQL Serverless warehouse works correctly and refreshes the column stats immediately.&lt;/P&gt;&lt;P&gt;Environment&lt;/P&gt;&lt;P&gt;- Runtime: Databricks Runtime 15.4.40 LTS&lt;BR /&gt;- Engine: Photon&lt;BR /&gt;- Cluster type: job cluster&lt;BR /&gt;- Table type: Unity Catalog managed Delta table&lt;BR /&gt;- Table properties:&lt;BR /&gt;- `delta.universalFormat.enabledFormats = iceberg`&lt;BR /&gt;- `delta.enableIcebergCompatV2 = true`&lt;BR /&gt;- `delta.columnMapping.mode = name`&lt;BR /&gt;- `delta.dataSkippingNumIndexedCols = 50`&lt;BR /&gt;- `delta.checkpointPolicy = classic`&lt;BR /&gt;- `delta.enableDeletionVectors = false`&lt;BR /&gt;- Predictive Optimization: disabled/inherited disabled at catalog level&lt;/P&gt;&lt;P&gt;Affected table&lt;/P&gt;&lt;P&gt;Example table:&lt;/P&gt;&lt;P&gt;`stg_silver_internal.payment.payment_merchant_read_merchant_preauth_transaction`&lt;/P&gt;&lt;P&gt;Reproduction&lt;/P&gt;&lt;P&gt;In the same DBR 15.4.40 Photon job-cluster session:&lt;/P&gt;&lt;P&gt;Run a silver job with 'ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS' but no use.&lt;/P&gt;&lt;P&gt;Comparison&lt;BR /&gt;Running the same ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS statement from a DBSQL Serverless warehouse works correctly. The DESCRIBE TABLE EXTENDED &amp;lt;table&amp;gt; &amp;lt;column&amp;gt; stats refresh immediately afterward.&lt;/P&gt;&lt;P&gt;Things already tried&lt;BR /&gt;Fully qualified three-part table name&lt;BR /&gt;USE CATALOG &amp;lt;catalog&amp;gt;&lt;BR /&gt;REFRESH TABLE &amp;lt;table&amp;gt;; result says refresh was not needed&lt;BR /&gt;Toggling spark.databricks.delta.uniform.iceberg.sync.convert.enabled&lt;BR /&gt;Verifying the same session sees the actual latest data via SELECT max(esupdatedat)&lt;BR /&gt;None of these changed the DBR job-cluster behavior.&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;Is this a known issue in DBR 15.4 LTS for UC managed Delta tables with UniForm/Iceberg compatibility and column mapping?&lt;BR /&gt;Is ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS expected to work from an all-purpose/job cluster in this table configuration?&lt;BR /&gt;Is the supported workaround to run optimizer-stat collection from DBSQL Serverless / SQL warehouse instead of DBR job clusters?&lt;BR /&gt;Should we use ANALYZE TABLE ... COMPUTE DELTA STATISTICS in addition to regular COMPUTE STATISTICS, or is that only for Delta file-skipping stats and not a replacement for CBO column stats?&lt;BR /&gt;Is this fixed in a newer DBR runtime such as DBR 16.x?&lt;BR /&gt;Please advise the recommended production-safe workaround and whether this should be treated as a DBR 15.4 LTS bug.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2026 13:17:39 GMT</pubDate>
    <dc:creator>sd1700092</dc:creator>
    <dc:date>2026-06-08T13:17:39Z</dc:date>
    <item>
      <title>ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS silently does not update column stats on DBR 15</title>
      <link>https://community.databricks.com/t5/data-engineering/analyze-table-compute-statistics-for-all-columns-silently-does/m-p/158559#M54738</link>
      <description>&lt;P&gt;Hi Databricks Support,&lt;/P&gt;&lt;P&gt;We need help confirming whether this is a known DBR 15.4 LTS bug or an unsupported/configuration-specific behavior.&lt;/P&gt;&lt;P&gt;Summary&lt;/P&gt;&lt;P&gt;On a Databricks Runtime 15.4.40 Photon job cluster, `ANALYZE TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; COMPUTE STATISTICS FOR ALL COLUMNS` completes successfully but does not update table-level or column-level optimizer statistics for a Unity Catalog managed Delta table.&lt;/P&gt;&lt;P&gt;The same SQL run from a DBSQL Serverless warehouse works correctly and refreshes the column stats immediately.&lt;/P&gt;&lt;P&gt;Environment&lt;/P&gt;&lt;P&gt;- Runtime: Databricks Runtime 15.4.40 LTS&lt;BR /&gt;- Engine: Photon&lt;BR /&gt;- Cluster type: job cluster&lt;BR /&gt;- Table type: Unity Catalog managed Delta table&lt;BR /&gt;- Table properties:&lt;BR /&gt;- `delta.universalFormat.enabledFormats = iceberg`&lt;BR /&gt;- `delta.enableIcebergCompatV2 = true`&lt;BR /&gt;- `delta.columnMapping.mode = name`&lt;BR /&gt;- `delta.dataSkippingNumIndexedCols = 50`&lt;BR /&gt;- `delta.checkpointPolicy = classic`&lt;BR /&gt;- `delta.enableDeletionVectors = false`&lt;BR /&gt;- Predictive Optimization: disabled/inherited disabled at catalog level&lt;/P&gt;&lt;P&gt;Affected table&lt;/P&gt;&lt;P&gt;Example table:&lt;/P&gt;&lt;P&gt;`stg_silver_internal.payment.payment_merchant_read_merchant_preauth_transaction`&lt;/P&gt;&lt;P&gt;Reproduction&lt;/P&gt;&lt;P&gt;In the same DBR 15.4.40 Photon job-cluster session:&lt;/P&gt;&lt;P&gt;Run a silver job with 'ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS' but no use.&lt;/P&gt;&lt;P&gt;Comparison&lt;BR /&gt;Running the same ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS statement from a DBSQL Serverless warehouse works correctly. The DESCRIBE TABLE EXTENDED &amp;lt;table&amp;gt; &amp;lt;column&amp;gt; stats refresh immediately afterward.&lt;/P&gt;&lt;P&gt;Things already tried&lt;BR /&gt;Fully qualified three-part table name&lt;BR /&gt;USE CATALOG &amp;lt;catalog&amp;gt;&lt;BR /&gt;REFRESH TABLE &amp;lt;table&amp;gt;; result says refresh was not needed&lt;BR /&gt;Toggling spark.databricks.delta.uniform.iceberg.sync.convert.enabled&lt;BR /&gt;Verifying the same session sees the actual latest data via SELECT max(esupdatedat)&lt;BR /&gt;None of these changed the DBR job-cluster behavior.&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;Is this a known issue in DBR 15.4 LTS for UC managed Delta tables with UniForm/Iceberg compatibility and column mapping?&lt;BR /&gt;Is ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS expected to work from an all-purpose/job cluster in this table configuration?&lt;BR /&gt;Is the supported workaround to run optimizer-stat collection from DBSQL Serverless / SQL warehouse instead of DBR job clusters?&lt;BR /&gt;Should we use ANALYZE TABLE ... COMPUTE DELTA STATISTICS in addition to regular COMPUTE STATISTICS, or is that only for Delta file-skipping stats and not a replacement for CBO column stats?&lt;BR /&gt;Is this fixed in a newer DBR runtime such as DBR 16.x?&lt;BR /&gt;Please advise the recommended production-safe workaround and whether this should be treated as a DBR 15.4 LTS bug.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 13:17:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/analyze-table-compute-statistics-for-all-columns-silently-does/m-p/158559#M54738</guid>
      <dc:creator>sd1700092</dc:creator>
      <dc:date>2026-06-08T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS silently does not update column stats on DB</title>
      <link>https://community.databricks.com/t5/data-engineering/analyze-table-compute-statistics-for-all-columns-silently-does/m-p/158648#M54746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/234000"&gt;@sd1700092&lt;/a&gt;,&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;From what I can verify, this looks more like a DBR 15.4 job-cluster issue than expected behaviour. The public &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-analyze-table" rel="noopener noreferrer nofollow" target="_blank"&gt;ANALYZE TABLE documentation&lt;/A&gt; is clear that ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS applies to both Databricks Runtime and Databricks SQL, and that FOR ALL COLUMNS should collect both table-level and column-level statistics for the query optimiser.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;I also couldn’t find any public documentation saying this is unsupported for Unity Catalog managed Delta tables that use UniForm/Iceberg compatibility or column mapping. In other words, based on the docs, this should work from a job or all-purpose cluster as well, so the fact that it succeeds but does not refresh optimiser stats on DBR 15.4 while the same statement works immediately from a DBSQL Serverless warehouse points more toward a runtime-specific bug or regression than a configuration that is simply unsupported.&lt;/P&gt;
&lt;P&gt;It’s also worth noting that ANALYZE TABLE ... COMPUTE DELTA STATISTICS is not a replacement for COMPUTE STATISTICS FOR ALL COLUMNS. The same docs explicitly say that when DELTA is specified, normal optimiser statistics are not collected. That command is for Delta log and data-skipping statistics, whereas COMPUTE STATISTICS is the one used for cost-based optimisation and query planning.&lt;/P&gt;
&lt;P&gt;So if you want a production-safe workaround today, the recommendation would be to run optimiser stats collection from a SQL warehouse, since that path is behaving correctly in your testing and is also a documented execution environment for ANALYZE TABLE. If the table is a Unity Catalog managed table, it is also worth noting that Databricks recommends &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-analyze-table" rel="noopener noreferrer nofollow" target="_blank"&gt;predictive optimization&lt;/A&gt; for this exact area, because it automatically runs ANALYZE on UC managed tables to keep optimizer stats current.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;On the question of newer runtimes, I didn’t find a public fix note that specifically says this exact behaviour is resolved in DBR 16.x. What I did find in the public &lt;A href="https://docs.databricks.com/aws/en/optimizations/cbo" rel="noopener noreferrer nofollow" target="_blank"&gt;cost-based optimizer documentation&lt;/A&gt; is that DBR 16.0 and above adds better visibility in EXPLAIN, including whether referenced tables have missing, partial, or full statistics, which at least makes validation and troubleshooting easier.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;I'd recommend a raising a Databricks support ticket to check if this is a runtime-specific bug as support teams don't pick up such requests from the community posts.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 13:41:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/analyze-table-compute-statistics-for-all-columns-silently-does/m-p/158648#M54746</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-06-09T13:41:49Z</dc:date>
    </item>
  </channel>
</rss>

