<?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: How to enable row tracking on Delta Live Tables? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104396#M41723</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;We are using a custom DLT framework and require an automated approach to enable this property. Additionally, based on the available documentation, it seems that this property is not directly accessible for enabling.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/en/delta-live-tables/sql-ref.html" target="_blank" rel="noopener"&gt;Delta Live Tables SQL language reference | Databricks on AWS&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/en/delta-live-tables/properties.html" target="_blank" rel="noopener"&gt;Delta Live Tables properties reference | Databricks on AWS&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 06 Jan 2025 16:10:42 GMT</pubDate>
    <dc:creator>TejeshS</dc:creator>
    <dc:date>2025-01-06T16:10:42Z</dc:date>
    <item>
      <title>How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104350#M41712</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;We are encountering a scenario where we need to enable support for Incremental Processing on Materialized views having DLT base tables. However, we have observed that the compute is being executed with the &lt;STRONG&gt;COMPLETE_RECOMPUTE&lt;/STRONG&gt; mode instead of &lt;STRONG&gt;INCREMENTAL&lt;/STRONG&gt;. Therefore, we need to activate row tracking functionality on the DLT base tables utilized within the Materialized views.&lt;/P&gt;&lt;P&gt;Query Example -&amp;gt;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE MATERIALIZED VIEW catalog_name.gold_schema.test_mv&lt;BR /&gt;AS&lt;BR /&gt;SELECT col_a, col_b&lt;BR /&gt;FROM catalog_name.silver_schema.base_dlt_table;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:47:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104350#M41712</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-06T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104356#M41713</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/140072"&gt;@TejeshS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your question!&lt;/P&gt;
&lt;P class="p1"&gt;You need to set the delta.enableRowTracking property to true on the DLT base table. This can be done using the TBLPROPERTIES clause when creating or altering the table.&lt;/P&gt;
&lt;P class="p1"&gt;Example:&lt;/P&gt;
&lt;P class="p1"&gt;CREATE OR REPLACE TABLE catalog_name.silver_schema.base_dlt_table&lt;/P&gt;
&lt;P class="p1"&gt;TBLPROPERTIES ('delta.enableRowTracking' = 'true')&lt;/P&gt;
&lt;P class="p1"&gt;AS&lt;/P&gt;
&lt;P class="p1"&gt;SELECT col_a, col_b&lt;/P&gt;
&lt;P class="p1"&gt;FROM source_table;&lt;/P&gt;
&lt;P class="p1"&gt;Once row tracking is enabled on the base table, you can create the materialized view as usual. The materialized view will now be able to use the row tracking information to perform incremental refreshes&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:52:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104356#M41713</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-06T13:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104357#M41714</link>
      <description>&lt;P&gt;What to do, if tables are already created. I don't see any ALTER command support for DLT tables for handling TBLPROPERTIES&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:55:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104357#M41714</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-06T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104363#M41715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/140072"&gt;@TejeshS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you try with:&lt;/P&gt;
&lt;P&gt;ALTER TABLE catalog.schema.table&lt;BR /&gt;SET TBLPROPERTIES (delta.enableRowTracking = true);&lt;/P&gt;
&lt;P&gt;Also you can see this by running&amp;nbsp;&lt;SPAN class="hljs-keyword"&gt;DESCRIBE&lt;/SPAN&gt; DETAIL on the table&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 14:25:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104363#M41715</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-06T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104376#M41720</link>
      <description>&lt;P&gt;This only works on Delta tables.&lt;/P&gt;&lt;P&gt;When we try ALTER table command on DLT it throws an error -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TejeshS_0-1736175947737.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13895iFE30EF396A330FB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TejeshS_0-1736175947737.png" alt="TejeshS_0-1736175947737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 15:05:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104376#M41720</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-06T15:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104381#M41721</link>
      <description>&lt;P&gt;Oh I see, sorry! the only way would be, but will recreate the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-sql _1t7bu9hb hljs language-sql gb5fhw3"&gt;&lt;SPAN class="hljs-keyword"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;OR&lt;/SPAN&gt; REPLACE &lt;SPAN class="hljs-keyword"&gt;TABLE&lt;/SPAN&gt; catalog.schema.table
TBLPROPERTIES (delta.enableRowTracking &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;However, this command will replace the existing table with a new one that has the &lt;CODE&gt;delta.enableRowTracking&lt;/CODE&gt; property enabled. Note that this approach will recreate the table.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 15:39:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104381#M41721</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-06T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104396#M41723</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;We are using a custom DLT framework and require an automated approach to enable this property. Additionally, based on the available documentation, it seems that this property is not directly accessible for enabling.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/en/delta-live-tables/sql-ref.html" target="_blank" rel="noopener"&gt;Delta Live Tables SQL language reference | Databricks on AWS&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/en/delta-live-tables/properties.html" target="_blank" rel="noopener"&gt;Delta Live Tables properties reference | Databricks on AWS&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:10:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104396#M41723</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-06T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable row tracking on Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104397#M41724</link>
      <description>&lt;P&gt;Moreover, we have CDF enabled DLT tables, but as per documentation we see a limitation if CDF is enabled then row Tracking won't be possible.&amp;nbsp;&lt;A href="https://docs.databricks.com/en/delta/row-tracking.html#limitations" target="_blank"&gt;Use row tracking for Delta tables | Databricks on AWS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But as per our use case we need incremental processing of Materialized Views based on DLT tables.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:18:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-enable-row-tracking-on-delta-live-tables/m-p/104397#M41724</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-06T16:18:14Z</dc:date>
    </item>
  </channel>
</rss>

