Skip to content

Test reading old int128 bitpacked page#637

Open
mdbenito wants to merge 1 commit into
LadybugDB:mainfrom
mdbenito:fix/test-old-bitpack
Open

Test reading old int128 bitpacked page#637
mdbenito wants to merge 1 commit into
LadybugDB:mainfrom
mdbenito:fix/test-old-bitpack

Conversation

@mdbenito

@mdbenito mdbenito commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

As per #633 (comment), this PR adds a test where we simulate an "old" persisted page by forging the metadata. We need only test working integer ranges because the case with min = INT128_MIN could never have written any pages to disk due to the bug that was fixed. For this reason I thought that the alternative, a binary fixture (of which I found just one for the WAL), wouldn't have really provided more information.

The test does not call compressNextPage (which would use the new path). Instead, it copies the three steps in the old code: metadata, delta computation, packing, then feeds the resulting bytes into the decompressor and asserts roundtrip.

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.

1 participant