Skip to content

Conversation

caseyclements
Copy link
Contributor

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(
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

@caseyclements caseyclements changed the title DRIVERS-3097 Addresses issues raised in and DRIVERS-3123 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 Apr 3, 2025
@caseyclements caseyclements changed the title Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 PYTHON-5126 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 Apr 3, 2025
@blink1073 blink1073 changed the title PYTHON-5126 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 PYTHON-5126 & PYTHON-5280 Addresses issues raised in DRIVERS-3097 and DRIVERS-3123 Apr 7, 2025
@caseyclements caseyclements requested a review from blink1073 April 9, 2025 13:06
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@caseyclements caseyclements merged commit fafa00e into mongodb:master Apr 9, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants