Skip to content

refactor!: drop unused loss field from IndexStatistics#3496

Merged
wjones127 merged 3 commits into
lancedb:mainfrom
wjones127:refactor/drop-index-loss-field
Jun 5, 2026
Merged

refactor!: drop unused loss field from IndexStatistics#3496
wjones127 merged 3 commits into
lancedb:mainfrom
wjones127:refactor/drop-index-loss-field

Conversation

@wjones127

@wjones127 wjones127 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: direct Rust users lose the IndexStatistics::loss field. Python and Node.js consumers are unaffected in practice for remote tables (the value was always None/absent), but the attribute is gone for local tables too.

IndexStatistics::loss was local-only — LanceDB Cloud never returned it, so
RemoteTable::index_stats always set loss: None. It's vestigial; this removes it.

  • Remove loss from IndexStatistics and the internal IndexMetadata in rust/lancedb/src/index.rs, plus the summing logic in NativeTable::index_stats.
  • Drop loss from the Python and Node.js bindings (and their tests/docs).

Fixes #3493

🤖 Generated with Claude Code

wjones127 and others added 3 commits June 3, 2026 11:24
The loss field was local-only; LanceDB Cloud never returned it and
RemoteTable always set it to None. Remove it from IndexStatistics and
the internal IndexMetadata, along with the summing logic in
NativeTable::index_stats.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions github-actions Bot added Python Python SDK Rust Rust related issues breaking-change A breaking change in our public APIs labels Jun 3, 2026
@wjones127
wjones127 marked this pull request as ready for review June 3, 2026 18:54

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

@wjones127
wjones127 merged commit 09b1bbc into lancedb:main Jun 5, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change A breaking change in our public APIs Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: drop unused loss field from IndexStatistics

2 participants