Skip to content

ALTER TABLE ADD second VECTOR column with async index leads to empty APPROXIMATE results #554

@wyfanxiao

Description

@wyfanxiao

Environment

  • Version: seekdb (OceanBase seekdb)
  • Revision: 1-4a092697e4a0f07ff7fb77e62b453489811acf9e
  • Build Branch: master
  • Build Time: Apr 13 2026 23:38:32
  • Build Flags: RelWithDebInfo|Sanity
  • Build Info: obbu...

Description

After executing an ALTER TABLE ... ADD operation to add a second VECTOR column and creating an asynchronous index on it, queries using the APPROXIMATE operator return empty results.

Steps to Reproduce

  1. Have an existing table.
  2. Execute ALTER TABLE to add a second column with the VECTOR data type.
  3. Create an asynchronous index on this new VECTOR column.
  4. Execute a query using the APPROXIMATE operator on the newly indexed column.
  5. Observed Result: The query returns an empty result set.
  6. Expected Result: The query should return relevant approximate nearest neighbor results based on the indexed data.

Impact

Data retrieval using the new asynchronous vector index is non-functional, blocking any application logic that depends on approximate similarity search for the newly added column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions