L1_DISTANCE
Purpose
L1_DISTANCE
is a shorthand version of the VECTOR_DISTANCE
function that calculates the distance between two vectors. It takes two vectors as input and returns the distance between them as a BINARY_DOUBLE
.
Parameters
-
expr1
andexpr2
must evaluate to vectors and have the same number of dimensions. -
L1_DISTANCE
returns NULL, if eitherexpr1
orexpr2
is NULL, or if the dimensions between the two vectors do not match up.