cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can you perform a Merge into a Delta table from a stream?

User16826992666
Valued Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

sajith_appukutt
Honored Contributor II

You could MERGE into a delta table from a stream using foreachBatch. Here is a sample notebook

View solution in original post

3 REPLIES 3

sajith_appukutt
Honored Contributor II

You could MERGE into a delta table from a stream using foreachBatch. Here is a sample notebook

Greg
New Contributor III

I am doing this exact thing with foreachBatch from a stream. However the Delta table I am merging into consumes a huge amount of space in relation to how much data is there due to the versions. Every MERGE execution will create new version. So if your stream is going to get lots of data that will trigger the MERGE, this may surprise you.

Anonymous
Not applicable

@Greg Moyerโ€‹ - Thank you. ๐Ÿ™‚

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.