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:ย 

Unity Catalog Migration

Avinash_Narala
Contributor

Hello,

We are in the process of migrating to Unity Catalog. 

So, can I know how to automate the process of Refactoring the Notebooks to Unity Catalog.

1 REPLY 1

MinThuraZaw
New Contributor III

Hi @Avinash_Narala 

There is no one-click solution to refactor all table names notebooks with UC's three level namespaces. At least, manual updating table names is required during the migration process.

One option is you can you search feature. Search for a table name and filter for Notebooks, then you got list of all notebooks that include the table name, then you can open that notebook in a new tab and update it. Repeat for every table. 

MinThuraZaw_0-1708501541335.png

 

Another option is, if you use Databricks Repos and having all your notebooks in your git provider, you can clone to local IDE and use refactor features provided by your IDE. Then update back to your Repos. All your notebooks are just pure files in git, so this is simple and fast to refactor.

 

There are many other options as well you can choose. However, attention of detail on table names is also required whatever solution you use. Good luck.

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