I've created a UDF in Scala (using Databricks notebook) which checks if the value of a field in a table is greater than 0, then sum those values. UDF is working as expected.
The problem is, that this UDF will be used by multiple SQLs across different notebooks. How can I make this UDF available to all the notebooks and avoid the re-creation of UDF in each notebook?
Thanks for the help.