Skip to content

fix: skip compression in create_per_value if compression metadata is set to none#5086

Merged
westonpace merged 2 commits intolance-format:mainfrom
wojiaodoubao:meta-none-compression
Oct 31, 2025
Merged

fix: skip compression in create_per_value if compression metadata is set to none#5086
westonpace merged 2 commits intolance-format:mainfrom
wojiaodoubao:meta-none-compression

Conversation

@wojiaodoubao
Copy link
Copy Markdown
Contributor

@wojiaodoubao wojiaodoubao commented Oct 28, 2025

Currently, we can't disable compression in per-value encoding. This pr tries to fix it.

@github-actions github-actions Bot added the bug Something isn't working label Oct 28, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 28, 2025

Codecov Report

❌ Patch coverage is 96.90722% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.66%. Comparing base (30d34ec) to head (d5276c3).

Files with missing lines Patch % Lines
rust/lance-encoding/src/compression.rs 96.90% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5086      +/-   ##
==========================================
- Coverage   81.72%   81.66%   -0.07%     
==========================================
  Files         340      340              
  Lines      138875   138967      +92     
  Branches   138875   138967      +92     
==========================================
- Hits       113502   113490      -12     
- Misses      21633    21737     +104     
  Partials     3740     3740              
Flag Coverage Δ
unittests 81.66% <96.90%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@wojiaodoubao
Copy link
Copy Markdown
Contributor Author

Hi @jackye1995 @westonpace , could you help review when you have time, thanks very much~

Copy link
Copy Markdown
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

One small nitpick but good to go otherwise

Comment thread rust/lance-encoding/src/compression.rs Outdated
Comment on lines +1213 to +1214
let compressor = strategy.create_per_value(&field, &variable_data).unwrap();
assert!(format!("{:?}", compressor).contains("VariableEncoder"));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the compression encodings would still have VariableEncoder in it (as an inner encoding). Maybe we can use extract_array_encoding_chain to get more accurate testing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks your suggestion! Let me fix it.

@wojiaodoubao wojiaodoubao force-pushed the meta-none-compression branch 4 times, most recently from de800e4 to c85bb1a Compare October 30, 2025 03:21
@wojiaodoubao wojiaodoubao force-pushed the meta-none-compression branch from c85bb1a to d5276c3 Compare October 30, 2025 11:21
@wojiaodoubao
Copy link
Copy Markdown
Contributor Author

Hi @westonpace , this pr is ready for review now, please help when you have time, thanks very much.

Copy link
Copy Markdown
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

Thanks for the tests!

@westonpace westonpace merged commit 9ed9ee2 into lance-format:main Oct 31, 2025
27 checks passed
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
…set to none (lance-format#5086)

Currently, we can't disable compression in per-value encoding. This pr
tries to fix it.

---------

Co-authored-by: lijinglun <lijinglun@bytedance.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants