Skip to content
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

Fixing issue 409 #410

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Fixing issue 409 #410

merged 2 commits into from
Jan 25, 2024

Conversation

lemire
Copy link
Member

@lemire lemire commented Jan 23, 2024

When deserializing a 64-bit roaring bitmap, the code would first try to deserialize a 32-bit bitmap. It would usually work, but sometimes it would fail (see #409) because the number of containers would be recognized as a cookie.

This PR disables this attempt at supporting 32-bit bitmaps loading from 64-bit bitmaps.

To compensate the reduction in functionality, the PR adds Roaring32AsRoaring64: users that have 32-bit bitmaps that they want to load as 64-bit bitmaps can just load them as 32-bit bitmaps and them call Roaring32AsRoaring64 to wrap them so that they appear as 64-bit bitmaps.

I do not include a test for issue 409 because it requires a non-trivial amount of memory to trigger it and I am concerned about stress on our CI.

…to deserialize a 32-bit bitmap. It would usually work, but sometimes it would fail (see #409) because the number of containers would be recognized as a cookie.

This PR just disables this attempt at supporting 32-bit bitmaps loading from 64-bit bitmaps.
Copy link
Contributor

@wjohnson-aurora wjohnson-aurora left a comment

Choose a reason for hiding this comment

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

I can confirm that commit 94aeb2b fixes issue #409. Thank you!

@lemire
Copy link
Member Author

lemire commented Jan 25, 2024

I am going to merge. This can be partially reverted if needed.

@lemire lemire merged commit 88e9207 into master Jan 25, 2024
12 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.

2 participants