<?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: Updating in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3831522#M2680</link>
    <description>&lt;P&gt;Dataflows only offers two data destination operations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Append&lt;/LI&gt;
&lt;LI&gt;Replace&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In that sense, it doesn't support any sort of delete operations or "Upserts" to update existing records.&lt;/P&gt;
&lt;P&gt;If your destination was a SQL Database, you could perhaps leverage a combination of a Data Pipeline,&amp;nbsp; a Dataflow Gen2 and a SQL Stored procedure to perhaps load the data inside of a "staging table" in your SQL Database and then run a stored procedure that will take that table and figure out, based on your own logic, what records to delete, update or add to your main table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how feasible that is with a Lakehouse as a destination, but you could try asking more questions specific to Lakehouse in the Lakehouse community forum (link below):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Synapse-forums/ct-p/AC-Community" target="_blank"&gt;Synapse forums - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 17:30:14 GMT</pubDate>
    <dc:creator>miguel</dc:creator>
    <dc:date>2024-04-11T17:30:14Z</dc:date>
    <item>
      <title>Updating</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3831020#M2679</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Currently I have two tables in a lakehouse and I am trying to complete some updates to the main table. Let's call them metadata and d_metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Metadata contains all data to date, and is the main table our teams use for reporting. d_metadata contains data loaded from source, where the records were updated in the previous day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both tables are currently in a lakehouse, and right now, we are using a Dataflow Gen2 to load the metadata table where rows do not match rows in the d_metadata table (joined based on a unique id).&lt;BR /&gt;&lt;BR /&gt;This is returning the old records from metadata, and then I am appending updated records from d_metadata and pushing the final results the metadata table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to appraoch this differently by simply deleting the updated records in metadata, and then appending d_metadata to avoid doing a full overwrite of what is a very large table.&lt;BR /&gt;&lt;BR /&gt;I cannot find a way to achieve this within a Fabric lakehouse, and other Spark SQL suggestions have not worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help guide me in the right direction? Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:15:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3831020#M2679</guid>
      <dc:creator>elavery95</dc:creator>
      <dc:date>2024-04-11T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updating</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3831522#M2680</link>
      <description>&lt;P&gt;Dataflows only offers two data destination operations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Append&lt;/LI&gt;
&lt;LI&gt;Replace&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In that sense, it doesn't support any sort of delete operations or "Upserts" to update existing records.&lt;/P&gt;
&lt;P&gt;If your destination was a SQL Database, you could perhaps leverage a combination of a Data Pipeline,&amp;nbsp; a Dataflow Gen2 and a SQL Stored procedure to perhaps load the data inside of a "staging table" in your SQL Database and then run a stored procedure that will take that table and figure out, based on your own logic, what records to delete, update or add to your main table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how feasible that is with a Lakehouse as a destination, but you could try asking more questions specific to Lakehouse in the Lakehouse community forum (link below):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Synapse-forums/ct-p/AC-Community" target="_blank"&gt;Synapse forums - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 17:30:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3831522#M2680</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-04-11T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Updating</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3834677#M2682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719085" data-lia-user-login="elavery95" class="lia-mention lia-mention-user"&gt;elavery95&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Can you please check this -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/tutorial-setup-incremental-refresh-with-dataflows-gen2" target="_blank" rel="noopener"&gt;Pattern to incrementally amass data with Dataflow Gen2 - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I suggest you incremental refresh rather than maintaining 2 tables.&lt;BR /&gt;&lt;BR /&gt;FYI: We will have more features in upcoming releases.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Docs to refer -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/release-plan/data-factory#df-output-dest-upsert" target="_blank"&gt;What's new and planned for Data Factory in Microsoft Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 19:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3834677#M2682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-12T19:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updating</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3837964#M2692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719085" data-lia-user-login="elavery95" class="lia-mention lia-mention-user"&gt;elavery95&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others. &lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 11:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3837964#M2692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-15T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Updating</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3841041#M2700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719085" data-lia-user-login="elavery95" class="lia-mention lia-mention-user"&gt;elavery95&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 10:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Updating/m-p/3841041#M2700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-16T10:39:29Z</dc:date>
    </item>
  </channel>
</rss>

