alter function owner in UC
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 07:04 AM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 08:35 AM
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.