cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Row filter causing duplicates in Delta Table while writing

Abhijeet2492
New Contributor II

Hello,

I have a databricks external table to which I have applied a row filter, After applying the row filter I see that the Delta merge functionality is not working as expected even with simple records ( not nested) and I have already tried execution with 16.4 and serverless clusters.

Is there any suggestion or recommendation for this?

3 REPLIES 3

szymon_dybczak
Esteemed Contributor III

Hi @Abhijeet2492 ,

For now merge support for row filters is pretty limited. Maybe you're hitting one of following limitations:

szymon_dybczak_0-1757598309061.png

 

Abhijeet2492
New Contributor II

What is the workaround to achieve the same functionality of upsert that we get with Merge?

szymon_dybczak
Esteemed Contributor III

Every merge statement can be rewritten as series of INSERT, UPDATE and DELETES. So, as of now you can try to handle it that way. Or just way until this feature mature enough (I guess soon some of the limitations will be removed)

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now