Coffee77
Honored Contributor II

That would work indeed 🙂 However, solution provided by @szymon_dybczak is really clean 🎯 In your code if you have separated workspaces by environment, I would suggest to get current environment based on "current workspace" or "environment variables" injected in all "job" or "all-purpose" clusters where you can store your custom environment names. You can do this via DAB along with Databricks CLI scripts. Take into account that you can have multiple catalogs per environment as is my use case 🙂


Lifelong Solution Architect Learner | Coffee & Data