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

How to set up partitions on the streaming Delta Table?

Leszek
Contributor

Let's assume that we have 3 streaming Delta Tables:

  • Bronze
  • Silver
  • Gold

My aim is to add partitioning to Silver table (for example by Date).

So, as a result Gold table with throw an error that source table has been updated and I would need to set 'ignoreChanges' to 'true' option in the streaming. Then streaming will work but it will move all data from Silver (all files has been changed) to Gold resulting in duplicates.

My question is how to handle this problem in the best way?

Is it possible to manipulate streaming checkpoint somehow?

3 REPLIES 3

-werners-
Esteemed Contributor III

is the change data feed functionality (of your silver table) an option, combined with merge in your gold table?

https://docs.microsoft.com/en-us/azure/databricks/delta/delta-change-data-feed

I never used CDC in Databricks but my ELT architecture is based on streaming and I don't want to change that.

Kaniz
Community Manager
Community Manager

Hi @Leszek​ , We haven’t heard from you on the last response from @Werner Stinckens​ , and I was checking back to see if his suggestions helped you.

Or else, If you have any solution, please do share that with the community as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

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.