You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(udf): validate query vector dimensions before computing distances
Distance UDFs (l2_distance, cosine_distance, negative_dot_product) used
zip() to iterate over column and query vectors, silently truncating to
the shorter length on dimension mismatch. This returned wrong results
instead of an error — especially dangerous on the brute-force fallback
path (SELECT *) where USearch dimension validation is bypassed.
For FixedSizeList: single upfront check (zero per-row cost).
For List/LargeList: per-row check (one branch, negligible vs kernel).
0 commit comments