Forum Discussion

elavery95's avatar
elavery95
New Member
2 years ago
Solved

Updating

Hello, 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.   Metadata contains all data to date, and i...
  • miguel's avatar
    2 years ago

    Dataflows only offers two data destination operations:

    • Append
    • Replace

    In that sense, it doesn't support any sort of delete operations or "Upserts" to update existing records.

    If your destination was a SQL Database, you could perhaps leverage a combination of a Data Pipeline,  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. 

    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):

    Synapse forums - Microsoft Fabric Community