cancel
Showing results for 
Search instead for 
Did you mean: 
missing-QuestionPost
cancel
Showing results for 
Search instead for 
Did you mean: 

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);

RV
New Contributor II
 
1 REPLY 1

Anonymous
Not applicable

Hi @Ravi V​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.