Skip to content

Distributed REFRESH INDEX for incremental scalar index maintenance #789

Description

@ivscheianu

Design proposal: #788

Incremental maintenance for scalar indexes (ALTER TABLE ... REFRESH INDEX), plus three pre-existing bugs the work surfaced.

Items 1-3 are independent of the design outcome and can land first: they are bugs on main today that affect CREATE INDEX, OPTIMIZE and VACUUM.

Known gaps recorded in the proposal rather than fixed here: a concurrent DROP INDEX can be undone by an in-flight refresh (needs lance-format/lance#6806), and a partially covered zonemap index prunes uncovered fragments so a predicate on the indexed column can return fewer rows than the table holds (reproducible with CREATE INDEX alone).

Edit: the zonemap gap is fixed by #781.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions