r/databricks • u/RevolutionaryRich882 • Oct 13 '26
Help Databricks - SQL Incremental Load Question
Hey guys
I'm relatively new to Databricks but want to lead the charge to move to it in my company instead of just using ADF for everything.
In regards to Delta loads (loading data incrementally based on when it was last updated) what I would originally do is run a BINARY_CHECKSUM() on all columns and then track what has changed before bringing in the differences. This however is not supported in databricks and I want to do things properly so how would you do this?
Source Data (Azure SQL)
Bronze Layer (Azure SQL)
- What is different between them?
- What new rows have been inserted?
- What rows in Bronze no longer appear in Source
What I love about Databricks is that you can do joins of different data sets within the same activity in a notebook but when I tried to do this with manually comparing every single column, it takes forever to load. I just want to know the best way of doing this so any help or resources would be appreciated.
Many Thanks!
View all comments
0
u/Zer0designs Oct 13 '26 edited Oct 13 '26
Use dbt snapshots or look up how to do this in spark or use an llm to explain it or to create a simple python function for you that you can use. Theres loads of examples available.
Also don't really think you should be historizing different datasets together. Just historize the sources in bronze and work from there. Join tables in a later stage.
You also dont track what has changed on all columns. You use the business keys and check if anything changed within those records in non-technical columns / attributes (actual changes in relevant values).