🤯 How the hell did I miss this update to Databricks SQL last month? 💡 Databricks have been serious about their investments in SQL for some time now. In July they introduced stored procedures in their Databricks SQL (version 2025.20 in Preview)! As in other data platforms, stored procedures in Databricks SQL are pre-compiled collections of SQL statements allowing users to manage their SQL logic into a single, reusable unit. As expected, procedures in Databricks are stored in Unity Catalog. And yes, they can be nested and recursive ;-) ✨ Why I think this is important? Because: 1) it's another important step to make Databricks more friendly for SQL developers willing to use their skills (and habits) built on other platforms (often on-premises RDBMSs) to Databricks and 2) support for stored procedures can simplify the migration process when moving from SQL-based platforms to Databricks. ❓ Anyone has already given a serious test drive to stored procs in Databricks SQL? ➡️ Read more here: https://lnkd.in/dYUwzevW #Databricks #SQL #StoredProcedures #DataPlatform #DataEngineering
Some time ago SQL was banned claiming that everything could be done with DataBricks or Fabric or who knows what grinder. Now DataBricks has integrated SQL just as Fabric did... This means having a clear path to follow... Not!!!
Pawel I’ve been working with Databricks SQL procedures in a project, and they’ve been a real life saver allowing me to encapsulate multiple pieces of logic into reusable components. Along the way, I ran into a few quirks, such as issues with STRUCT that I had to resolve using NAMED_STRUCT. What I still don’t get is why Databricks decided to introduce such a non-standard syntax for calling procedures: CALL my_procedure( param1 => value, ... paramN => value ) It feels unnecessarily naive. They could have simply stuck to standard SQL syntax instead of reinventing the wheel yet again.
Databricks is becoming sql server
My guess is that this has to do a lot more with number 2 (supporting migrations) more than anything else. I've seen it as a pain point of concern before around this.
On top of that even multi statement transactions are in private preview as well .
Is it possible to debug and test this?
Totally agree! This is a very important step for making Databricks a serious optionfor SQL developers. Many people have told me, those problems can be solved with other tools, but as you say that is not really the point... 🤓
Bang up to date with a feature which has been available in Oracle since at least 1994 in Oracle 7
Senior Data Engineer at Rippleshot
2moprocedures in SQL of any kind are the Devils work. https://open.substack.com/pub/dataengineeringcentral/p/databricks-sql-scripting?utm_source=share&utm_medium=android&r=cxg56