-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5126 & PYTHON-5280 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 #2261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PYTHON-5126 & PYTHON-5280 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 #2261
Conversation
caseyclements
commented
Apr 3, 2025
- See PYTHON-5126 and DRIVERS-3123 for details.
if padding and not n_values: | ||
raise ValueError("Corrupt data. Vector has a padding P, but no data.") | ||
if padding and n_values and not (unpacked_uint8s[-1] & ((1 << padding) - 1)) == 0: | ||
raise ValueError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these breaking changes for existing data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are, yeah. But only for a case that vector search doesn't use. I feel confident that it won't affect anyone now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog entry to explain this because it's a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!