<?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: DLT apply_changes applies only deletes and inserts not updates in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68351#M33644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;mail for pricing info on support plans is sent.&lt;/P&gt;&lt;P&gt;With regard to the preview release of&amp;nbsp;&lt;SPAN&gt;Delta Lake 3.0 &lt;STRONG&gt;Delta Universal Format (UniForm), &lt;/STRONG&gt;I have read the release notes but fail to see how this&amp;nbsp;helps in any way towards mirroring data from a sql server instance, could you please explain?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 06:52:53 GMT</pubDate>
    <dc:creator>Anske</dc:creator>
    <dc:date>2024-05-07T06:52:53Z</dc:date>
    <item>
      <title>DLT apply_changes applies only deletes and inserts not updates</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/67293#M33312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a DLT pipeline that applies changes from a source table (&lt;SPAN&gt;&lt;SPAN&gt;cdctest_cdc_enriched) to a target table (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;cdctest&lt;/SPAN&gt;&lt;SPAN&gt;), by the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dlt.&lt;/SPAN&gt;&lt;SPAN&gt;apply_chang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ation = 1"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;except_column_list&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;"operation"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"tran_begin_time"&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;stored_as_scd_type&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now if I add an 'update' row to the source table and update the pipeline, the update is not applied to the target table, even though it is added to the source table. The source table follows the structure of a cdc table in SQL Server.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;A screenshot of the data that is in the source table is attached, as well as a screenshot of the target table not showing updated data (don't be fooled by some of the - updated values in test1 column, those are the result of a backfill).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is this is a known issue? Has anyone else had trouble with applying update operations sql server style (where update creates 2 records, one with the data before update (operation 3). and one with the data after update (operation 4)? Or am I doing something completely wrong?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:37:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/67293#M33312</guid>
      <dc:creator>Anske</dc:creator>
      <dc:date>2024-04-25T11:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: DLT apply_changes applies only deletes and inserts not updates</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68249#M33612</link>
      <description>&lt;P&gt;Hi Kaniz,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DLT pipeline runs without errors, and all changes of type 1 and 2 (inserts and deletes) are actually applied correctly. But, after checking the target table, apparently, the updates were not reflected in the target. I have since created a workaround by deleting the rows in the source where operation = 3 (update rows with values before update) and replacing all instances of 4 with the string 'UPDATE' in the operation column (I had to change the data type of the operation column to a string and set&amp;nbsp;&lt;SPAN&gt;apply_as_deletes parameter to '1' instead of 1. This fixed it and it now processes inserts, deletes and all updates.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 12:46:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68249#M33612</guid>
      <dc:creator>Anske</dc:creator>
      <dc:date>2024-05-06T12:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: DLT apply_changes applies only deletes and inserts not updates</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68267#M33618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for that, I actually would love some assistance. When I was at the databricks intelligence day in early April, I asked the guy giving the workshop about mirroring some tables from a sql server application database to the delta lake with databricks. He told me that DB will release a feature offering exactly this functionality in Q2 (he thought it would be May), and he advised me to reach out to our account contact for more info.&amp;nbsp;I have tried reaching out to&amp;nbsp;Claire Nicholl who is supposed to be our responsible account executive (I got redirected to her by Anna Cumbelich), by emailing her. I did this the 18th of April but I am still waiting for a reply. Could you tell me anything about this new feature and/or redirect me to the right person?&lt;/P&gt;&lt;P&gt;Another question that I have is, would it be possible to get some actual support on databricks? I found the page listing the support plans (&lt;A href="https://www.databricks.com/support" target="_blank"&gt;https://www.databricks.com/support&lt;/A&gt;), but there is no info on the page about costs, or how to subscribe to any of the plans.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 13:45:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68267#M33618</guid>
      <dc:creator>Anske</dc:creator>
      <dc:date>2024-05-06T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: DLT apply_changes applies only deletes and inserts not updates</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68351#M33644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;mail for pricing info on support plans is sent.&lt;/P&gt;&lt;P&gt;With regard to the preview release of&amp;nbsp;&lt;SPAN&gt;Delta Lake 3.0 &lt;STRONG&gt;Delta Universal Format (UniForm), &lt;/STRONG&gt;I have read the release notes but fail to see how this&amp;nbsp;helps in any way towards mirroring data from a sql server instance, could you please explain?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 06:52:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-apply-changes-applies-only-deletes-and-inserts-not-updates/m-p/68351#M33644</guid>
      <dc:creator>Anske</dc:creator>
      <dc:date>2024-05-07T06:52:53Z</dc:date>
    </item>
  </channel>
</rss>

