While creating a UDF in databricks SQL, how can I declare a local variable?
Something like this?
CREATE OR REPLACE FUNCTION len()
set myString = 'my value';
RETURNS INT
RETURN length(myString);
Let's see if your peers in the community have an answer to your question. Thanks.
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.