<?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: I want to know how to update and insert data without changing or deleting the Guid values. in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4070325#M4808</link>
    <description>&lt;P&gt;unfortunately UPSERT option is not available in Copy / Dataflow gen2 with lakehouse as a sink.&lt;/P&gt;
&lt;P&gt;you would have write some custom logic to handle the same , Below blog provides some details :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/pulse/implementing-incremental-load-lakehouse-table-insert-update-malshan-bp2bc" target="_blank"&gt;https://www.linkedin.com/pulse/implementing-incremental-load-lakehouse-table-insert-update-malshan-bp2bc&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 03:31:55 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2024-07-31T03:31:55Z</dc:date>
    <item>
      <title>I want to know how to update and insert data without changing or deleting the Guid values.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4070049#M4802</link>
      <description>&lt;P&gt;There is customer data in Azure SQL DB. Each customer stored here has a Guid value. I want to incrementally load this customer data into a Lakehouse.&lt;BR /&gt;If the customer data is modified, I want to keep the Guid value and only update the changed information. If new customer data is created, I want to simply insert it.&lt;BR /&gt;I want to configure this using all the resources of Fabric without using Query statements.&lt;BR /&gt;Is there a method that can be used universally in various projects?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 01:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4070049#M4802</guid>
      <dc:creator>minseok_kr</dc:creator>
      <dc:date>2024-07-31T01:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: I want to know how to update and insert data without changing or deleting the Guid values.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4070325#M4808</link>
      <description>&lt;P&gt;unfortunately UPSERT option is not available in Copy / Dataflow gen2 with lakehouse as a sink.&lt;/P&gt;
&lt;P&gt;you would have write some custom logic to handle the same , Below blog provides some details :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/pulse/implementing-incremental-load-lakehouse-table-insert-update-malshan-bp2bc" target="_blank"&gt;https://www.linkedin.com/pulse/implementing-incremental-load-lakehouse-table-insert-update-malshan-bp2bc&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 03:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4070325#M4808</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-07-31T03:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: I want to know how to update and insert data without changing or deleting the Guid values.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4077042#M4862</link>
      <description>&lt;P&gt;If you are building a managed delta table in a lakehouse to bring the data from Sql, you can use Delta Table API in notebook to perform a fully qualified UPSERT using merge between source and target delta table.&lt;/P&gt;
&lt;PRE style="box-sizing: border-box; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 13.6px; white-space: pre; position: relative; z-index: 1; margin: 0px; padding: 12px; line-height: 1.5; display: block; overflow: auto; color: #052247; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f2f2f2; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN class=""&gt;from &lt;SPAN class=""&gt;delta.tables &lt;SPAN class=""&gt;import &lt;SPAN class=""&gt;*

&lt;SPAN class=""&gt;deltaTablePeople &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;DeltaTable&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;forPath&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;spark&lt;SPAN class=""&gt;, &lt;SPAN class=""&gt;'/tmp/delta/people-10m'&lt;SPAN class=""&gt;)
&lt;SPAN class=""&gt;deltaTablePeopleUpdates &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;DeltaTable&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;forPath&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;spark&lt;SPAN class=""&gt;, &lt;SPAN class=""&gt;'/tmp/delta/people-10m-updates'&lt;SPAN class=""&gt;)

&lt;SPAN class=""&gt;dfUpdates &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;deltaTablePeopleUpdates&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;toDF&lt;SPAN class=""&gt;()

&lt;SPAN class=""&gt;deltaTablePeople&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;alias&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;'people'&lt;SPAN class=""&gt;) \
  &lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;merge&lt;SPAN class=""&gt;(
    &lt;SPAN class=""&gt;dfUpdates&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;alias&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;'updates'&lt;SPAN class=""&gt;),
    &lt;SPAN class=""&gt;'people.id = updates.id'
  &lt;SPAN class=""&gt;) \
  &lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;whenMatchedUpdate&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;set &lt;SPAN class=""&gt;=
    &lt;SPAN class=""&gt;{
      &lt;SPAN class=""&gt;"id"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.id"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"firstName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.firstName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"middleName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.middleName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"lastName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.lastName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"gender"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.gender"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"birthDate"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.birthDate"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"ssn"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.ssn"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"salary"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.salary"
    &lt;SPAN class=""&gt;}
  &lt;SPAN class=""&gt;) \
  &lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;whenNotMatchedInsert&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;values &lt;SPAN class=""&gt;=
    &lt;SPAN class=""&gt;{
      &lt;SPAN class=""&gt;"id"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.id"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"firstName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.firstName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"middleName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.middleName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"lastName"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.lastName"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"gender"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.gender"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"birthDate"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.birthDate"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"ssn"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.ssn"&lt;SPAN class=""&gt;,
      &lt;SPAN class=""&gt;"salary"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"updates.salary"
    &lt;SPAN class=""&gt;}
  &lt;SPAN class=""&gt;) \
  &lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;execute&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;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gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 04:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-want-to-know-how-to-update-and-insert-data-without-changing-or/m-p/4077042#M4862</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-03T04:57:47Z</dc:date>
    </item>
  </channel>
</rss>

