Skip to content

feat: add public accessors for count plan construction#5103

Merged
wkalt merged 3 commits intolance-format:mainfrom
wkalt:task/make-create-count-plan-public
Nov 13, 2025
Merged

feat: add public accessors for count plan construction#5103
wkalt merged 3 commits intolance-format:mainfrom
wkalt:task/make-create-count-plan-public

Conversation

@wkalt
Copy link
Copy Markdown
Contributor

@wkalt wkalt commented Oct 30, 2025

This patch changes the count plan accessor to public, changes the get_deletion_vector method on fragments to public, and adds a couple public accessors on EvaluatedIndex.

The purpose of this patch is to enable systems to construct and optimize the count plan using datafusion optimizer rules.

@github-actions github-actions Bot added the enhancement New feature or request label Oct 30, 2025
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.69%. Comparing base (afc0f98) to head (66aa598).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
rust/lance/src/io/exec/filtered_read.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5103      +/-   ##
==========================================
- Coverage   81.69%   81.69%   -0.01%     
==========================================
  Files         340      340              
  Lines      138845   138881      +36     
  Branches   138845   138881      +36     
==========================================
+ Hits       113433   113456      +23     
- Misses      21672    21684      +12     
- Partials     3740     3741       +1     
Flag Coverage Δ
unittests 81.69% <25.00%> (-0.01%) ⬇️

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.

@wjones127 wjones127 self-assigned this Oct 30, 2025
Comment thread rust/lance/src/io/exec/filtered_read.rs Outdated
Comment thread rust/lance/src/io/exec/filtered_read.rs Outdated
&self.index_result
}

/// Get a reference to the applicable fragments bitmap
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here. I don't think the reader will immediately understand what "applicable fragments bitmap".

IIUC, it's the set of fragment ids that may contain matching rows.

wkalt and others added 3 commits November 12, 2025 07:32
This patch changes the count plan accessor to public, changes the
get_deletion_vector method on fragments to public, and adds a couple
public accessors on EvaluatedIndex.

The purpose of this patch is to enable systems to construct and optimize
the count plan using datafusion optimizer rules.
Co-authored-by: Will Jones <willjones127@gmail.com>
@wkalt
Copy link
Copy Markdown
Contributor Author

wkalt commented Nov 12, 2025

@wjones127 thanks, updated

@wkalt wkalt merged commit 64168b4 into lance-format:main Nov 13, 2025
34 of 36 checks passed
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
…5103)

This patch changes the count plan accessor to public, changes the
get_deletion_vector method on fragments to public, and adds a couple
public accessors on EvaluatedIndex.

The purpose of this patch is to enable systems to construct and optimize
the count plan using datafusion optimizer rules.

---------

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants