Skip to content

chore[btrblocks]: add scheme selection tests for all compression schemes#5953

Merged
joseph-isaacs merged 2 commits intodevelopfrom
ji/btr-blocks-encoding-test
Jan 14, 2026
Merged

chore[btrblocks]: add scheme selection tests for all compression schemes#5953
joseph-isaacs merged 2 commits intodevelopfrom
ji/btr-blocks-encoding-test

Conversation

@joseph-isaacs
Copy link
Copy Markdown
Contributor

Add comprehensive tests to verify that each BtrBlocks compression scheme is correctly selected when it provides the best compression for specific data patterns. This helps catch regressions where a scheme is never chosen.

Integer schemes (9 tests):

  • ConstantScheme, FORScheme, ZigZagScheme, BitPackingScheme
  • SparseScheme, DictScheme, RunEndScheme, SequenceScheme, RLE

Float schemes (9 tests):

  • ConstantScheme, ALPScheme, ALPRDScheme, DictScheme
  • NullDominated, RLE, UncompressedScheme fallback

String schemes (7 tests):

  • ConstantScheme, DictScheme, FSSTScheme, NullDominated
  • UncompressedScheme fallback

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.41%. Comparing base (f1684e6) to head (bf30bee).
⚠️ Report is 3 commits behind head on develop.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Add tests to verify that each BtrBlocks compression scheme produces the
expected encoding type when compressing specific data patterns.

Integer schemes tested (8 tests):
- ConstantVTable, FoRVTable, BitPackedVTable, SparseVTable
- DictVTable, RunEndVTable, SequenceVTable, RLEVTable

Float schemes tested (4 tests):
- ConstantVTable, ALPVTable, DictVTable, SparseVTable (null-dominated)

String schemes tested (3 tests):
- ConstantVTable, DictVTable, FSSTVTable

Signed-off-by: Joe Isaacs <joe@spiraldb.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@joseph-isaacs joseph-isaacs force-pushed the ji/btr-blocks-encoding-test branch from a78d620 to 9ee74ac Compare January 14, 2026 14:56
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs added the changelog/chore A trivial change label Jan 14, 2026
@joseph-isaacs joseph-isaacs changed the title test(btrblocks): add scheme selection tests for all compression schemes chore(btrblocks): add scheme selection tests for all compression schemes Jan 14, 2026
@joseph-isaacs joseph-isaacs marked this pull request as ready for review January 14, 2026 14:57
@joseph-isaacs joseph-isaacs enabled auto-merge (squash) January 14, 2026 14:57
@joseph-isaacs joseph-isaacs changed the title chore(btrblocks): add scheme selection tests for all compression schemes chore[btrblocks]: add scheme selection tests for all compression schemes Jan 14, 2026
Copy link
Copy Markdown
Contributor

@robert3005 robert3005 left a comment

Choose a reason for hiding this comment

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

Those leading new lines are painful to see but test coverage here is good to have

@joseph-isaacs joseph-isaacs merged commit 41a7cf2 into develop Jan 14, 2026
52 of 54 checks passed
@joseph-isaacs joseph-isaacs deleted the ji/btr-blocks-encoding-test branch January 14, 2026 15:06
danking pushed a commit that referenced this pull request Feb 6, 2026
…mes (#5953)

Add comprehensive tests to verify that each BtrBlocks compression scheme
is correctly selected when it provides the best compression for specific
data patterns. This helps catch regressions where a scheme is never
chosen.

Integer schemes (9 tests):
- ConstantScheme, FORScheme, ZigZagScheme, BitPackingScheme
- SparseScheme, DictScheme, RunEndScheme, SequenceScheme, RLE

Float schemes (9 tests):
- ConstantScheme, ALPScheme, ALPRDScheme, DictScheme
- NullDominated, RLE, UncompressedScheme fallback

String schemes (7 tests):
- ConstantScheme, DictScheme, FSSTScheme, NullDominated
- UncompressedScheme fallback

---------

Signed-off-by: Joe Isaacs <joe@spiraldb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants