<?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: Metric views materialization failure in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/172470#M56644</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/240823"&gt;@alejandro_jaram&lt;/a&gt;, I took a look at both internal and external documentation and here is what I found.&lt;/P&gt;
&lt;P&gt;First, credit to &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/181478"&gt;@osingh&lt;/a&gt; for pointing at clustering and statistics validation. Liquid clustering does require file stats on every clustering key, and the error in your screenshot looks like the &lt;CODE&gt;DELTA_CLUSTERING_COLUMN_MISSING_STATS&lt;/CODE&gt; family. That said, the post doesn't prove a backend regression on its own, and I wouldn't lean on the internal engine details in that reply as a diagnosis. Every metric view failing on the same day with no YAML changes is decent evidence of a platform-side change, but the exact error code, update ID, and runtime are what confirm it.&lt;/P&gt;
&lt;P&gt;One correction that'll save you some frustration. A metric view is a view, not a Delta table, so &lt;CODE&gt;ALTER TABLE ... SET TBLPROPERTIES&lt;/CODE&gt; against the metric view name will fail. The materialized views underneath it are created and maintained by a managed Lakeflow pipeline, and you don't own their table properties either. &lt;CODE&gt;delta.dataSkippingStatsColumns&lt;/CODE&gt; and &lt;CODE&gt;ANALYZE TABLE ... COMPUTE DELTA STATISTICS&lt;/CODE&gt; are the right tools for tables you create yourself, just not here.&lt;/P&gt;
&lt;P&gt;What you can do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the real error. Run &lt;CODE&gt;DESCRIBE EXTENDED catalog.schema.metric_view&lt;/CODE&gt; and follow the pipeline link in the Refresh Information section, or use the link under Refresh Schedule on the metric view's Overview tab in Catalog Explorer. The pipeline event log gives you the full error code and update ID.&lt;/LI&gt;
&lt;LI&gt;Validate the YAML. The names in &lt;CODE&gt;cluster_by.cols&lt;/CODE&gt; must be metric view field names, not display labels or source column names. Also confirm your unaggregated materialization doesn't carry &lt;CODE&gt;dimensions&lt;/CODE&gt; or &lt;CODE&gt;measures&lt;/CODE&gt;, since that type materializes the whole model.&lt;/LI&gt;
&lt;LI&gt;Try a full refresh: &lt;CODE&gt;REFRESH MATERIALIZED VIEW catalog.schema.metric_view FULL;&lt;/CODE&gt;. If a runtime update left the materialization metadata out of step with the definition, this is the cheapest way to find out.&lt;/LI&gt;
&lt;LI&gt;Isolate it. Remove &lt;CODE&gt;cluster_by&lt;/CODE&gt; from one materialization and refresh. If that succeeds, add the columns back one at a time, or switch to &lt;CODE&gt;cluster_by: auto: true&lt;/CODE&gt; as osingh suggested. Either option changes physical layout and performance, so treat it as a diagnostic or a stopgap rather than a fix.&lt;/LI&gt;
&lt;LI&gt;If it still fails after a clean YAML and a full refresh, open a support ticket with the pipeline ID, event log entries, runtime, YAML, and the fact that all your metric views broke at once. Since the pipeline is managed, support can see what you can't.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you learn the root cause, please post it back here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Materialization for metric views: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Metric view YAML reference: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;REFRESH MATERIALIZED VIEW: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-refresh-full" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-refresh-full&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Liquid clustering: &lt;A href="https://docs.databricks.com/aws/en/tables/clustering" target="_blank"&gt;https://docs.databricks.com/aws/en/tables/clustering&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Data skipping and statistics columns: &lt;A href="https://docs.databricks.com/aws/en/tables/data-skipping" target="_blank"&gt;https://docs.databricks.com/aws/en/tables/data-skipping&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;KB: DELTA_CLUSTERING_COLUMN_MISSING_STATS: &lt;A href="https://kb.databricks.com/delta/delta_clustering_column_missing_stats-error-when-attempting-to-define-liquid-clustering-for-a-delta-table" target="_blank"&gt;https://kb.databricks.com/delta/delta_clustering_column_missing_stats-error-when-attempting-to-define-liquid-clustering-for-a-delta-table&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards, Louis.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2026 13:51:56 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2026-10-09T13:51:56Z</dc:date>
    <item>
      <title>Metric views materialization failure</title>
      <link>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/168260#M55877</link>
      <description>&lt;P&gt;Hi, I have metric views with materilization option, it was running fine but today it just failed without any change to my metric view definition, all metric views are failing so I guess is something general. Based on limited logs (users can´t fully audit DLT code) looks like clustering columns required by user are not being added to stats columns.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance&lt;BR /&gt;&lt;BR /&gt;Here is an example of how materializations are defined in yml file:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;materialization:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;schedule:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CRON&amp;nbsp;'30&amp;nbsp;0&amp;nbsp;5&amp;nbsp;?&amp;nbsp;*&amp;nbsp;Mon'&amp;nbsp;AT&amp;nbsp;TIME&amp;nbsp;ZONE&amp;nbsp;'UTC'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;mode:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;relaxed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;materialized_views:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;name:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;baseline&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;unaggregated&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cluster_by:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;auto:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cols:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Travel&amp;nbsp;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Operating&amp;nbsp;Carrier&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Departure&amp;nbsp;Airport&amp;nbsp;IATA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Arrival&amp;nbsp;Airport&amp;nbsp;IATA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_jaram_0-1789057920599.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/30982i665803AA01A89391/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_jaram_0-1789057920599.png" alt="alejandro_jaram_0-1789057920599.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2026 16:44:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/168260#M55877</guid>
      <dc:creator>alejandro_jaram</dc:creator>
      <dc:date>2026-09-10T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Metric views materialization failure</title>
      <link>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/168346#M55904</link>
      <description>&lt;P&gt;This error happens because Delta's Liquid Clustering requires column statistics to be collected for every column specified in your &lt;FONT face="courier new,courier"&gt;cluster_by.cols&lt;/FONT&gt; list &lt;FONT face="courier new,courier"&gt;(Travel Month, Operating Carrier, Departure Airport IATA, Arrival Airport IATA),&lt;/FONT&gt; but Enzyme (the internal engine handling Metric Views and Materialized Views) omitted &lt;FONT face="courier new,courier"&gt;Operating Carrier&lt;/FONT&gt; from the stats schema during its internal initialization query &lt;FONT face="courier new,courier"&gt;(__enzyme_row_id__)&lt;/FONT&gt;. Since this started failing across all metric views without any definition changes, it points to a recent Databricks backend runtime update tightening stats validation for DLT pipelines.&lt;/P&gt;&lt;P&gt;Here are few steps you can try:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Force stats collection on the clustering columns&lt;/STRONG&gt;&lt;BR /&gt;Explicitly define the exact columns Delta must collect stats for using table properties on your target metric view:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER TABLE `intelligence_dv`.`gold`.`bookings_adjusted_segments_metric_view`
SET TBLPROPERTIES (
'delta.dataSkippingStatsColumns' = 'Travel Month, Operating Carrier, Departure Airport IATA, Arrival Airport IATA'
);&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Verification: Run the pipeline again to verify that the initialization phase passes without the missing stats error.&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;STRONG&gt;2. Perform a Full Refresh on the DLT pipeline&lt;/STRONG&gt;&lt;BR /&gt;Backend runtime updates can cause internal Enzyme projections and Delta metadata to get out of sync. In your pipeline UI, click &lt;STRONG&gt;Select tables for refresh&lt;/STRONG&gt; and run a &lt;STRONG&gt;Full Refresh&lt;/STRONG&gt;.&lt;BR /&gt;Verification: Check the pipeline event log to ensure all tables rebuild cleanly from scratch.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Increase the indexed columns threshold&lt;/STRONG&gt;&lt;BR /&gt;Delta Lake stops collecting statistics after the first 32 columns by default. If &lt;FONT face="courier new,courier"&gt;Operating Carrier&lt;/FONT&gt; sits further down in your schema, bump the limit:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER TABLE `intelligence_dv`.`gold`.`bookings_adjusted_segments_metric_view` 
SET TBLPROPERTIES ('delta.dataSkippingNumIndexedCols' = '64');&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT size="2"&gt;Verification: Trigger the pipeline and check the driver logs to confirm stats are generated for all clustering columns.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Workaround: Switch to Automatic Clustering&lt;/STRONG&gt;&lt;BR /&gt;If explicit column clustering continues to fail due to Enzyme dropping stats context, update your YAML definition to let Databricks manage clustering automatically:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cluster_by:
 auto: true&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT size="2"&gt;Verification: Re-deploy the YAML definition and confirm the scheduled materialization job runs to completion.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Hope this should work!&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;PS-If none of these work, I'd recommend raising a ticket with Databricks support, as this is likely a bug introduced in a recent Enzyme engine release for Metric Views.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 11:12:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/168346#M55904</guid>
      <dc:creator>osingh</dc:creator>
      <dc:date>2026-09-11T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Metric views materialization failure</title>
      <link>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/172470#M56644</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/240823"&gt;@alejandro_jaram&lt;/a&gt;, I took a look at both internal and external documentation and here is what I found.&lt;/P&gt;
&lt;P&gt;First, credit to &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/181478"&gt;@osingh&lt;/a&gt; for pointing at clustering and statistics validation. Liquid clustering does require file stats on every clustering key, and the error in your screenshot looks like the &lt;CODE&gt;DELTA_CLUSTERING_COLUMN_MISSING_STATS&lt;/CODE&gt; family. That said, the post doesn't prove a backend regression on its own, and I wouldn't lean on the internal engine details in that reply as a diagnosis. Every metric view failing on the same day with no YAML changes is decent evidence of a platform-side change, but the exact error code, update ID, and runtime are what confirm it.&lt;/P&gt;
&lt;P&gt;One correction that'll save you some frustration. A metric view is a view, not a Delta table, so &lt;CODE&gt;ALTER TABLE ... SET TBLPROPERTIES&lt;/CODE&gt; against the metric view name will fail. The materialized views underneath it are created and maintained by a managed Lakeflow pipeline, and you don't own their table properties either. &lt;CODE&gt;delta.dataSkippingStatsColumns&lt;/CODE&gt; and &lt;CODE&gt;ANALYZE TABLE ... COMPUTE DELTA STATISTICS&lt;/CODE&gt; are the right tools for tables you create yourself, just not here.&lt;/P&gt;
&lt;P&gt;What you can do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the real error. Run &lt;CODE&gt;DESCRIBE EXTENDED catalog.schema.metric_view&lt;/CODE&gt; and follow the pipeline link in the Refresh Information section, or use the link under Refresh Schedule on the metric view's Overview tab in Catalog Explorer. The pipeline event log gives you the full error code and update ID.&lt;/LI&gt;
&lt;LI&gt;Validate the YAML. The names in &lt;CODE&gt;cluster_by.cols&lt;/CODE&gt; must be metric view field names, not display labels or source column names. Also confirm your unaggregated materialization doesn't carry &lt;CODE&gt;dimensions&lt;/CODE&gt; or &lt;CODE&gt;measures&lt;/CODE&gt;, since that type materializes the whole model.&lt;/LI&gt;
&lt;LI&gt;Try a full refresh: &lt;CODE&gt;REFRESH MATERIALIZED VIEW catalog.schema.metric_view FULL;&lt;/CODE&gt;. If a runtime update left the materialization metadata out of step with the definition, this is the cheapest way to find out.&lt;/LI&gt;
&lt;LI&gt;Isolate it. Remove &lt;CODE&gt;cluster_by&lt;/CODE&gt; from one materialization and refresh. If that succeeds, add the columns back one at a time, or switch to &lt;CODE&gt;cluster_by: auto: true&lt;/CODE&gt; as osingh suggested. Either option changes physical layout and performance, so treat it as a diagnostic or a stopgap rather than a fix.&lt;/LI&gt;
&lt;LI&gt;If it still fails after a clean YAML and a full refresh, open a support ticket with the pipeline ID, event log entries, runtime, YAML, and the fact that all your metric views broke at once. Since the pipeline is managed, support can see what you can't.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you learn the root cause, please post it back here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Materialization for metric views: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Metric view YAML reference: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;REFRESH MATERIALIZED VIEW: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-refresh-full" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-refresh-full&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Liquid clustering: &lt;A href="https://docs.databricks.com/aws/en/tables/clustering" target="_blank"&gt;https://docs.databricks.com/aws/en/tables/clustering&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Data skipping and statistics columns: &lt;A href="https://docs.databricks.com/aws/en/tables/data-skipping" target="_blank"&gt;https://docs.databricks.com/aws/en/tables/data-skipping&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;KB: DELTA_CLUSTERING_COLUMN_MISSING_STATS: &lt;A href="https://kb.databricks.com/delta/delta_clustering_column_missing_stats-error-when-attempting-to-define-liquid-clustering-for-a-delta-table" target="_blank"&gt;https://kb.databricks.com/delta/delta_clustering_column_missing_stats-error-when-attempting-to-define-liquid-clustering-for-a-delta-table&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards, Louis.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2026 13:51:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/metric-views-materialization-failure/m-p/172470#M56644</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2026-10-09T13:51:56Z</dc:date>
    </item>
  </channel>
</rss>

