l1_distance()

The l1_distance() SQL function is not available in the current MatrixOne runtime.

Manhattan (L1) distance is the sum of the absolute differences between corresponding vector elements:

L1(a, b) = sum(abs(a[i] - b[i]))

Do not use SELECT l1_distance(...) in an application query: the current runtime rejects it with not supported: function or operator 'l1_distance'. The l1_norm() function calculates a single vector’s norm, not the distance between two vectors. For an executable nearest-neighbor example, use l2_distance().