Forum Discussion

pbi_taken's avatar
pbi_taken
Helper I
2 years ago
Solved

Incremental refresh og selected refresh using data pipeline

Hi, 

 

Wondering if anyone has done this successfully?

 

I'm using the copy activity to get data from my on-prem sql server. I would like to not overwrite my entire table on each refresh. 

I each row has a "UpdatedDate" and I would like to use this to check if it's greater than previous and then refresh, otherwise keep as is and shorten the refresh time.

 

Does anyone know if this is possible?

 

Thanks!

7 Replies

    • pbi_taken's avatar
      pbi_taken
      Helper I

      Hi rubayatyasmin ,

       

      Thanks! Maybe my question was a little misleading. My destination is a Lakehouse and with that it does not give me the option of upserting. 

      Could an expression builder solve this, and if so, I do not know..

  • frithjof_v's avatar
    frithjof_v
    Community Champion

    Are you looking to append the updated rows, or are you looking to do upsert (insert new rows and update existing rows with changes)?

     

    If you want to do an upsert, I think you will need to include a Notebook to do the upsert for a Lakehouse destination.

  • There is not currently a way to do this with only the Copy Data activity.

     

    If you want to use auxiliary/raw/landing tables, you cannot update a Lakehouse table with the SQL Endpoint. You can with a Notebook.

     

    If you want to write with SQL, you can use auxiliary/raw/landing tables in a Warehouse and make a shortcut inside the Lakehouse pointing to the Warehouse table.