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 compare notebooks for deployment

BeginnerBob
New Contributor III

I have 2 Azure Databricks workspaces (test and prod)

I want to compare the notebooks to see the changes.

Are there any tools which can help do this?

Thanks,

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

Yes please use Repos and set git repositories so that you can use the standard git process during merges.

BeginnerBob
New Contributor III

Thanks Hubert.

What's the best approach here? Do I have 2 trunks in my repos (1 for dev and the other for production)?

Can I do a compare between the 2 trunks to generate all the notebooks which need to be deployed. How do I do this compare (in DevOps, vsCode etc.)

What is the best way to do this deployment i.e. running Powershell scripts, manual overwrite etc.

Thanks,

Hubert-Dudek
Esteemed Contributor III

I would set up two separate branches (one on each of your workspace), push from them, and then merge those branches to the "dev" or "prod" branch in the external tool (by creating a pull request). My favorite is Azure DevOps, but the most popular are GitHub and Gitlab.

Of course, you can have as many branches as you want in a separate folder in each workspace. So you can have on your workspace branch dedicated to that workspace as well "dev" and "prod", which are created after merging pull requests and are the same in both workspaces (so you don't develop on "dev" and "prod" branches, you make only pull to get them).

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