Euclidean Distance
Algorithm link: Approximate Nearest Neighbors
Euclidean distance measures the straight line distance between two
points in n-dimensional space. The algorithm takes two vectors denoted
by ListAccum
and returns the Euclidean distance between them.
Notes
This algorithm is implemented as a user-defined function. You need to follow the steps in Add a User-Defined Function to add the function to GSQL. After adding the function, you can call it in any GSQL query in the same way as a built-in GSQL function.