Skip to content

openCypher: CREATE VECTOR INDEX without vector.dimensions before any vector is written #10915

Closed

Description

@robfrank

Follow-up of #10863.

#10863 lets CREATE VECTOR INDEX omit vector.dimensions when the indexed property already holds a vector: the dimension is taken from the first one found (OpenCypherQueryEngine.dimensionsOfExistingVectors). A statement run before any vector is written is still refused, because an LSM_VECTOR index is sized at creation:

CREATE VECTOR INDEX emb FOR (n:Doc) ON n.embedding        // refused: Doc.embedding holds no vector yet
CREATE (:Doc {embedding: [0.1, 0.2, 0.3]})

That is the order a Neo4j script usually runs in (schema first, then data). Supporting it needs an LSM_VECTOR index that can exist unsized and fix its dimension on the first vector it receives: metadata (dimensions = unset), the first-put path (including concurrent first puts and replication of the decided value), the graph build, the quantization setup that depends on the dimension (PQ subspaces), and SHOW INDEXES, which then lists the dimension once decided.

Entry points: CypherIndexOptions.vectorMetadata, LSMVectorIndexMetadata.fromUserMetadata, LSMVectorIndex put/build paths.

Activity

  1. added this to the 26.11.1 milestone on Oct 28, 2026
  2. added
    enhancement
    vector
    on Oct 28, 2026
  3. added
    engine
    severity:minor
    on Oct 28, 2026
  4. self-assigned this
    on Oct 28, 2026
  5. added
    in progress
    on Oct 29, 2026
  6. added a commit that references this issue on Oct 30, 2026
  7. robfrank commented on Oct 30, 2026

    @robfrank
    CollaboratorAuthor

    CREATE VECTOR INDEX without vector.dimensions over a property that holds no vector yet now succeeds. The index is created unsized and fixes its dimension on the first vector it receives, and a vector of another length is then refused like with any sized index.

    Still open: A real HA cluster test and a search test through VectorLeg are tracked in #10993. An unsized index whose first 1000 records hold no vector stays unsized until a put, the first writer fixes the dimension, and there is no upper bound on it.

    Fixed by #10992.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  8. removed
    in progress
    on Oct 30, 2026
  9. added a commit that references this issue on Nov 2, 2026
  10. added 2 commits that reference this issue on Nov 5, 2026
  11. added 2 commits that reference this issue on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

engineenhancementopencypherseverity:minorvector

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions