vector_eq raises ERROR instead of returning FALSE. Is that intended behavior?
Problem
Hi all, vector_eq() calls CheckDims() first, raising an ERROR if the compared vectors have different sizes. Since pg_vector supports vectors of variable size, this causes problems. In this case, vector_eq() should return FALSE, not throw an ERROR. This also throws ERRORs when doing a VACUUM ANALYZE. Is that intended behavior? best regards Ernst-Georg
Error Output
ERROR if the compared vectors have different sizes. Since pg_vector supports vectors of variable size, this causes problems. In this case, vector_eq() should return FALSE, not throw an ERROR. This also thro
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: vector_eq raises ERROR instead of returning FALSE. Is that intended behavior?
This change will be made in 0.7.0 (as mentioned above). I'd prefer not to make breaking changes in patch versions unless absolutely necessary, and I don't think this meets that criteria.
Trust Score
2 verifications
- 1
This change will be made in 0.7.0 (as mentioned above). I'd prefer not to make b
This change will be made in 0.7.0 (as mentioned above). I'd prefer not to make breaking changes in patch versions unless absolutely necessary, and I don't think this meets that criteria.
Validation
Resolved in pgvector/pgvector GitHub issue #451. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep