What is a 'UDF' (User Defined Function)?

What is a 'UDF' (User Defined Function)?

Approach: Explain custom logic in SQL.

A custom function written by a user to perform logic that is not available in the built-in functions of a database or processing engine.

Follow-up: What is the performance risk of using a UDF in Spark?

Key concepts: extensibility, custom code.