From 403320ae3e60d4326bb918ebf3067ad9b0f737a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Magyar?= Date: Sat, 3 Oct 2026 18:46:00 +0100 Subject: [PATCH] test(embeddings): match native fixture chunk index schema Address review feedback on #3463 by using the production INT32 chunkIndex type in the native recovery fixture. Validation: both native recovery suites passed, 15/15 tests; git diff --check passed. The graph was refreshed and the top-level fixture DDL remains unmapped after retry, so its one-line diff and test-only caller were checked manually. --- gitnexus/test/fixtures/staged-embedding-recovery/seed.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus/test/fixtures/staged-embedding-recovery/seed.mjs b/gitnexus/test/fixtures/staged-embedding-recovery/seed.mjs index 8fa506f60..37d61ebb6 100644 --- a/gitnexus/test/fixtures/staged-embedding-recovery/seed.mjs +++ b/gitnexus/test/fixtures/staged-embedding-recovery/seed.mjs @@ -11,7 +11,7 @@ async function query(cypher) { await result.close(); } } -await query('CREATE NODE TABLE CodeEmbedding (id STRING, nodeId STRING, chunkIndex INT64, startLine INT64, endLine INT64, embedding FLOAT[2], contentHash STRING, PRIMARY KEY(id))'); +await query('CREATE NODE TABLE CodeEmbedding (id STRING, nodeId STRING, chunkIndex INT32, startLine INT64, endLine INT64, embedding FLOAT[2], contentHash STRING, PRIMARY KEY(id))'); async function row(id, nodeId, chunkIndex, hash = 'same', startLine = 1, endLine = 3) { await query(`CREATE (:CodeEmbedding {id: '${id}', nodeId: '${nodeId}', chunkIndex: ${chunkIndex}, startLine: ${startLine}, endLine: ${endLine}, embedding: [1.0, 2.0], contentHash: ${hash === null ? 'NULL' : `'${hash}'`}})`); }