Skip to content

Invalid results from FTS or vector search after a data replacement #6283

@westonpace

Description

@westonpace

A DataReplacement operation can modify a column that is indexed. Today we will drop the modified fragment from the index's fragment bitmap. However, this does not avoid invalid results because the fragment bitmap might cover other fragments included in the search.

For example:

  1. Write fragments 1 & 2.
  2. Create index covering fragments 1 & 2.
  3. Update fragment 1 in-place with DataReplacement. Fragment 1 is removed from the index's bitmap.
  4. Search whole dataset

The search will target fragments 1 & 2. It will search the index because it covers fragment 2. It will search fragment 1 because it is unindexed. The search results from the index search will include fragment 1 rows even though it should not.

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