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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.