<?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: Incremental refresh of materialized view in serverless DLT in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/83814#M37010</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/48282"&gt;@SharathE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incremental refresh in DLT Materialized Views is dependent on many different factors, such as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the source of the query/function that is creating the MV&lt;/LI&gt;
&lt;LI&gt;The type of operation(s) that is happening within your query/function&lt;/LI&gt;
&lt;LI&gt;which DLT channel you are on (current/preview)&lt;/LI&gt;
&lt;LI&gt;If you are using Serverless or not (Generally, the latest and greatest features are available in serverless DLT)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But If your source for the MV is not Streaming Tables (e.g., Delta table), then you need to make sure to have the following features enabled on your source Delta tables:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;delta.enableChangeDataFeed"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;"delta.enableRowTracking"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;However, looking at the JSON output of planning the MV in your DLT logs will provide you with more information on why a specific method has been selected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 14:00:42 GMT</pubDate>
    <dc:creator>MehdiModarressi</dc:creator>
    <dc:date>2024-08-21T14:00:42Z</dc:date>
    <item>
      <title>Incremental refresh of materialized view in serverless DLT</title>
      <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/83654#M36979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, Every time that I run a delta live table materialized view in serverless , I get a log of "COMPLETE RECOMPUTE" . How can I achieve incremental refresh in serverless in DLT pipelines?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:40:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/83654#M36979</guid>
      <dc:creator>SharathE</dc:creator>
      <dc:date>2024-08-20T16:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental refresh of materialized view in serverless DLT</title>
      <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/83814#M37010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/48282"&gt;@SharathE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incremental refresh in DLT Materialized Views is dependent on many different factors, such as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the source of the query/function that is creating the MV&lt;/LI&gt;
&lt;LI&gt;The type of operation(s) that is happening within your query/function&lt;/LI&gt;
&lt;LI&gt;which DLT channel you are on (current/preview)&lt;/LI&gt;
&lt;LI&gt;If you are using Serverless or not (Generally, the latest and greatest features are available in serverless DLT)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But If your source for the MV is not Streaming Tables (e.g., Delta table), then you need to make sure to have the following features enabled on your source Delta tables:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;delta.enableChangeDataFeed"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;"delta.enableRowTracking"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;However, looking at the JSON output of planning the MV in your DLT logs will provide you with more information on why a specific method has been selected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:00:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/83814#M37010</guid>
      <dc:creator>MehdiModarressi</dc:creator>
      <dc:date>2024-08-21T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental refresh of materialized view in serverless DLT</title>
      <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/97109#M39429</link>
      <description>&lt;P&gt;Make sure you are using the aggregates and SQL restrictions outlined in this article.&amp;nbsp;&lt;A href="https://docs.databricks.com/en/optimizations/incremental-refresh.html" target="_blank"&gt;https://docs.databricks.com/en/optimizations/incremental-refresh.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If a SQL function is non-deterministic (current_timestamp() is a common one) you will have a COMPLETE_RECOMPUTE every time.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 19:48:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/97109#M39429</guid>
      <dc:creator>drewipson</dc:creator>
      <dc:date>2024-10-31T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental refresh of materialized view in serverless DLT</title>
      <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/130656#M48862</link>
      <description>&lt;P&gt;I want to identify which rows were updated as part of the last refresh if it was an incremental refresh. Is there an external event log in the form of a table which could help in identifying this?&lt;BR /&gt;I was trying to achieve this using current_timestamp as a col in my SQL function, but then that makes it non-deterministic and so it runs as a&amp;nbsp;&lt;SPAN&gt;COMPLETE_RECOMPUTE every time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 12:56:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/130656#M48862</guid>
      <dc:creator>ManoramTaparia</dc:creator>
      <dc:date>2025-09-03T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental refresh of materialized view in serverless DLT</title>
      <link>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/131765#M49226</link>
      <description>&lt;P&gt;So, I am using DLT declarative framework to work with MV in the gold layer. I am sharing code for the sample. So, can someone tell me that how we can do only the incremental refresh, as this code is doing a full refresh daily. I don't to want do again do the full refresh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name=target_table,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; comment=comment&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; def final_table():&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dlt.read.table(source_table)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;My source of Gold layer is a streaming table.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;I am using Advance compute.&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Channel is Preview.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guptaharsh_0-1757675100089.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19939iFDE2FB3B28AF948C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guptaharsh_0-1757675100089.png" alt="guptaharsh_0-1757675100089.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 11:14:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incremental-refresh-of-materialized-view-in-serverless-dlt/m-p/131765#M49226</guid>
      <dc:creator>guptaharsh</dc:creator>
      <dc:date>2025-09-12T11:14:08Z</dc:date>
    </item>
  </channel>
</rss>

