In this video, I show you how to build your own User-Defined Function step-by-step. First, I go through the syntax of the “CREATE FUNCTION” statement. Then, I will show you how to add JavaScript code to the function definition. Finally, I built two User-Defined functions from scratch, one for filtering arrays and another for calculating the distance between two vectors.
- The blog post version of the tutorial is available here.
- Free Trial for CrateDB Cloud
- Join our CrateDB Community