Skip to content

bug: commit_existing_index_segments retains a same-name index of a different type #7842

Description

@ragnorc

The incoming_type_url filter in rust/lance/src/index.rs (introduced in #6593) excludes same-name indices with a different index_details.type_url from removed_indices, so committing segments under an existing name of another type publishes both logical indices side by side. This diverges from CreateIndexBuilder replace semantics (removes every same-name index regardless of type, rust/lance/src/index/create.rs) and the coexisting entries break load_index_by_name ("Found multiple indices of the same name", rust/lance/src/index/api.rs). The retention behavior is untested. Either reject the type mismatch with a descriptive error or replace all same-name indices to match the builder path. Noted during review of #6806.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions