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

alter function owner in UC

Nathant93
New Contributor III

I have a number of functions in a schema in a catalog in Unity Catalog, is there a coding way to be able to change the owner of the functions created without having to do it manually via the gui?

1 REPLY 1

ossinova
Contributor II

Check this notebook out, I assume you can change it a bit to do what you want. 
https://docs.databricks.com/en/_extras/notebooks/source/set-owners-notebook.html
I assume you can loop through the rows in the resulting df (that has the ALTER statements), and then trigger a pySQL query. 

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