Skip to content

fix: call remove_outer_validity() before dictionary_encode - #3974

Merged
westonpace merged 2 commits into
lance-format:mainfrom
luohao:hluo/fix-dict-encoding-with-nulls
Jun 11, 2025
Merged

westonpace merged 2 commits into
lance-format:mainfrom
luohao:hluo/fix-dict-encoding-with-nulls

Conversation

@luohao

@luohao luohao commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

fixes #3962

remove_outer_validity() is called inside encode_miniblock and encode_fullzip which comes after dictionary encoding. This PR moves remove_outer_validity call before dictionary encoding.

@github-actions github-actions Bot added the bug Something isn't working label Jun 11, 2025
@luohao
luohao force-pushed the hluo/fix-dict-encoding-with-nulls branch 4 times, most recently from cb8442c to 615a40f Compare June 11, 2025 00:39
@codecov-commenter

codecov-commenter commented Jun 11, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@8aee2ae). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3974   +/-   ##
=======================================
  Coverage        ?   78.38%           
=======================================
  Files           ?      285           
  Lines           ?   111460           
  Branches        ?   111460           
=======================================
  Hits            ?    87373           
  Misses          ?    20697           
  Partials        ?     3390           
Flag Coverage Δ
unittests 78.38% <100.00%> (?)

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.

@westonpace
westonpace force-pushed the hluo/fix-dict-encoding-with-nulls branch from 615a40f to 331f842 Compare June 11, 2025 12:54

@westonpace westonpace left a comment

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.

Thank you for figuring this out. I've added a unit test and will merge when CI passes.

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.

Lance writer hit unreachable!("dictionary encode called with data block {:?}", data_block)

3 participants