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