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: 

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?

2 REPLIES 2

-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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group