User-Defined Functions (UDFs) in TiDB Cloud Lake allow you to create custom operations tailored to your specific data processing needs. This page highlights the commands you will use most often and helps you choose the right function type for your use case.
Tip
Check the built-in functions first. TiDB Cloud Lake ships hundreds of built-in functions covering math, strings, dates, JSON, aggregation, and more. Before writing a UDF, browse the SQL Function Reference to see if one already does what you need. Reach for a UDF when the built-ins can't express your logic.