Skip to content

feat: add delete rows to table stats - #3783

Merged
wjones127 merged 1 commit into
lancedb:mainfrom
yuvalif:add-deleted-rows-to-stats
Oct 7, 2026
Merged

wjones127 merged 1 commit into
lancedb:mainfrom
yuvalif:add-deleted-rows-to-stats

Conversation

@yuvalif

@yuvalif yuvalif commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

add to table stats the number of rows that has
been marked for deletion, but not yet deleted.
note that when a table fragment is removed due to
deletion of all of its rows, these rows are not counted. since the main use of this feature is to determine when table compaction is needed, the fact that these rows are not reported should not impact that decision (deleted table fragments don't need compaction).

Fixes: #3761

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added enhancement New feature or request Python Python SDK Rust Rust related issues labels Aug 5, 2026
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from 3fa866f to a81de59 Compare August 6, 2026 11:39
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from a81de59 to c98e473 Compare August 6, 2026 15:54
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from c98e473 to 696ad7c Compare August 6, 2026 17:35
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from 696ad7c to f20bcb9 Compare August 10, 2026 12:23
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 17, 2026
@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from f20bcb9 to 663ab3e Compare September 17, 2026 14:41
@lancedb-gatekeeper lancedb-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 17, 2026
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 17, 2026
add to table stats the number of rows that has
been marked for deletion, but not yet deleted.
note that when a table fragment is removed due to
deletion of all of its rows, these rows are not counted.
since the main use of this feature is to determine when
table compaction is needed, the fact that these rows are
not reported should not impact that decision (deleted table
fragments don't need compaction).

the value is optional, to support a case when a remote
server does not report it.
in the rust and python SDKs it will exists as "Mone".
in the nodejs SDK it will not be in the stats (undefined).

Fixes: lancedb#3761

Signed-off-by: Yuval Lifshitz <[email protected]>

Co-authored-by: Claude Opus 5.0 <[email protected]>
@yuvalif
yuvalif force-pushed the add-deleted-rows-to-stats branch from 663ab3e to b29d64e Compare September 29, 2026 19:25
@lancedb-gatekeeper lancedb-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 29, 2026

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The rebased patch preserves exact local deletion counts and distinguishes an omitted remote value from a genuine zero across the Rust, Python, and Node APIs. Focused native statistics tests pass against Lance beta.15, and the binding code retains its previously verified behavior.

Please mark this PR with the breaking-change label.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 29, 2026
@wjones127

Copy link
Copy Markdown
Contributor

Thanks!

@wjones127
wjones127 merged commit 069b2f7 into lancedb:main Oct 7, 2026
29 checks passed
yuvalif added a commit to yuvalif/lancedb-c that referenced this pull request Oct 13, 2026
including deleted rows added here:
lancedb/lancedb#3783

Signed-off-by: Yuval Lifshitz <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance. Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: add "marked deleted" rows count to the table stats API

2 participants