If an operation you're trying to perform isn't natively available as a built-in function in Snowflake, you can define your own user-defined function (UDF). UDFs help you expand your data use cases easily, and are executed inside Snowflake. With Snowpark, you can create UDFs for all your custom logic, and then call these UDFs to process the data in your data frames. The benefit of this framework is that the UDFs are executed on the server side in a secure sandbox. In this episode of "Snowflake 101," Diana Pham explains it all, and discusses the difference between UDFs and other ways of extending Snowflake, including UDTFs, external functions, and stored procedures.
![](https://i.ytimg.com/vi/x-P9J6M00Yw/maxresdefault.jpg)