lance-format / lance-format/lance

Create a index lifecycle test

Open
#5,316 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ci
Dominant language
Rust
Stars
7.1k
Forks
852
Avg merge
3d 18h
Merged PRs (30d)
272

Description

Create an integration test that validates it can handle a sequence of writes and optimization steps.

  • Create a compaction rule (run compaction when there are > 5 fragments)
  • Create a optimize_indices rule (create a new index segment when there are > 100 unindexed rows, merge index when there are > 3 segments)
  • Have a test that:
    1. Creates a dataset with starting rows and index
    2. In a loop:
      1. Perform an upsert
      2. Apply compaction rule
      3. Apply optimize_indices rule

This would be to catch bugs like https://github.com/lance-format/lance/issues/5312. (Should validate it would have caught this.)

We should run this for all index types.

Related: https://github.com/lance-format/lance/issues/4034

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the related issues 5312 and 4034, then locate the existing integration tests and index-type test coverage. Implement the described write, compaction, and optimize_indices sequence for every index type, and verify that the test reproduces the failure discussed in issue 5312.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.