feat: expose staged index segment transactions
Draft
RA
6mo ago+6473+6473+0123456789012345678901234567890123456789-3069-3069-0123456789012345678901234567890123456789
Summary
- Add
DatasetIndexExt::build_existing_index_segments_transactionto prepare anOperation::CreateIndextransaction for existing index segments without committing. - Refactor
commit_existing_index_segmentsto reuse the staged transaction path. - Add coverage that verifies staging does not publish the index and the returned transaction can be committed via
CommitBuilder.
Tests
cargo fmt --allcargo test -p lance existing_index_segments -- --nocapturecargo test -p lance test_vector_execute_uncommitted_segments_commit_without_staging -- --nocapture- External crate
cargo checkagainst the new public API
Fixes lance-format/lance#6666


Summary by cubic
Adds a staged transaction builder to publish existing index segments without auto-committing, enabling two-phase index creation; refactors the existing commit path to use it. Also pulls in recent search and tokenizer improvements from main.
-
New Features
DatasetIndexExt::build_existing_index_segments_transaction(index_name, column, segments) -> Transactionfor staging, then commit viaCommitBuilder(andcommit_existing_index_segmentsnow uses this path).- Search upgrades: batch KNN queries with a
query_indexcolumn; fast_search for scalar indexes to scan only indexed fragments; ICU-based FTS tokenizer viabase_tokenizer="icu".
-
Bug Fixes
- Correctness: apply LIMIT after refine filters in filtered reads; fix stale reads in mem_wal via dedup-on-scan and deletion vectors; stable-row-id deletion masks honor fragment bitmaps; coerce expressions before simplification to avoid UDF panics.
- Performance/maintenance: avoid extra stat calls on OpenDAL ranged reads; clean up IVF shuffler temp dirs.