What is a User Defined Function (UDF) in Spark? Write the syntax to register and use a UDF, and explain its performance implications compared to built-in Spark functions.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.