<?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: Time Travel Error when selecting from materialized view (Azure Databricks) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139129#M51103</link>
    <description>&lt;LI-CODE lang="python"&gt;DESCRIBE HISTORY catalog.schema.table_name;&lt;/LI-CODE&gt;&lt;P&gt;Check the earliest available version. If the version mentioned in the error is older than what’s retained, that’s the issue.&lt;/P&gt;&lt;P&gt;Also, inspect the materialized view’s backing pipeline in &lt;STRONG&gt;Catalog Explorer → Refresh Details&lt;/STRONG&gt; to see if it attempted incremental refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 17:41:41 GMT</pubDate>
    <dc:creator>nayan_wylde</dc:creator>
    <dc:date>2025-11-14T17:41:41Z</dc:date>
    <item>
      <title>Time Travel Error when selecting from materialized view (Azure Databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139102#M51096</link>
      <description>&lt;P&gt;Hey - running into an error this morning that was brought to my attention via failed refreshes from PowerBI. We have a materialized view that, when queried with the standard pattern of 'select col1 from {schema}.table_name', returns an error of 'Cannot time travel Delta Table to version XXXX'. This is odd to me for a few reasons.&lt;/P&gt;&lt;P&gt;1: materialized views don't support time travel as far as I can tell:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/dbsql/materialized#limitations" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/ldp/dbsql/materialized#limitations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2: The query isn't specifying any version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried changing computes between warehouse and serverless and I still get the same errors. There are other MV's in that pipeline with all the same dependencies, that are not having this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone ran into this, or have any insight? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 14:46:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139102#M51096</guid>
      <dc:creator>EAnthemNHC1</dc:creator>
      <dc:date>2025-11-14T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time Travel Error when selecting from materialized view (Azure Databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139121#M51102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121298"&gt;@EAnthemNHC1&lt;/a&gt;&amp;nbsp;there could be multiple reasons :&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;The materialized view is backed by a Delta table. If the underlying Delta table has been vacuumed (old versions removed), but the materialized view metadata or refresh logic tries to access a specific (now-missing) version, you’ll get a “Cannot time travel Delta Table to version XXXX” error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) I&lt;SPAN&gt;f a refresh failed or was interrupted, the MV metadata may be out of sync with the underlying data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;trying forcing a refresh on MV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;REFRESH MATERIALIZED VIEW {schema}.{table_name}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or worst trying re-creating a MV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Br&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 16:16:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139121#M51102</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2025-11-14T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Time Travel Error when selecting from materialized view (Azure Databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139129#M51103</link>
      <description>&lt;LI-CODE lang="python"&gt;DESCRIBE HISTORY catalog.schema.table_name;&lt;/LI-CODE&gt;&lt;P&gt;Check the earliest available version. If the version mentioned in the error is older than what’s retained, that’s the issue.&lt;/P&gt;&lt;P&gt;Also, inspect the materialized view’s backing pipeline in &lt;STRONG&gt;Catalog Explorer → Refresh Details&lt;/STRONG&gt; to see if it attempted incremental refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 17:41:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/139129#M51103</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-11-14T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time Travel Error when selecting from materialized view (Azure Databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/141563#M51758</link>
      <description>&lt;P&gt;Since last monday december 8th we're experiencing this same issue:&amp;nbsp;&lt;STRONG&gt;Cannot time travel Delta table to version 158. Available versions: [70, 4].&amp;nbsp;&lt;/STRONG&gt;However, this is just when doing a simple SELECT * statement from a gold view (without any version specified). The issue seems to start in the silver layer of that live table (materialized view). Since DLT stores that as a materialized view we cannot see the version history of the table. The bronze tables of which the silver layer is build up of, can all be queried successfully.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Another interesting thing to mention&lt;/STRONG&gt;: The error only occurs when querying from&amp;nbsp; ADB environment A with SQL Warehouse A on the table in Unity Catalog 'production',&amp;nbsp;&lt;STRONG&gt;however&lt;/STRONG&gt;, when we're querying from ADB environment B, with its own SQL warehouse B, but the same table in Unity Catalog 'production', then I can query the tables successfully, without any of the version errors. The versions of the serverless sql warehouses and their channels are exactly the same in both environments.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 07:45:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/141563#M51758</guid>
      <dc:creator>cookiebaker</dc:creator>
      <dc:date>2025-12-10T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time Travel Error when selecting from materialized view (Azure Databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/141651#M51776</link>
      <description>&lt;P&gt;&lt;STRONG&gt;OUR FIX&lt;/STRONG&gt;&lt;BR /&gt;Eventually we learned via DESCRIBE EXTENDED, that the table had lost its Location path in production environment. Querying via the development environment to the production catalog&amp;nbsp; the location path&amp;nbsp; was still visible.&lt;BR /&gt;Solved the issue (with the right Manage rights on the materialized views) by deletion of the views from bronze, silver to gold and refreshed the DLT again. After that the location path of the table was visible in PRD as well. I have not found the rootcause of the corrupted locationpath for this specific table in our PRD environment.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2025 10:17:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/time-travel-error-when-selecting-from-materialized-view-azure/m-p/141651#M51776</guid>
      <dc:creator>cookiebaker</dc:creator>
      <dc:date>2025-12-11T10:17:18Z</dc:date>
    </item>
  </channel>
</rss>

