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.
This commit is contained in:
Gergő Magyar 2026-10-03 18:46:00 +01:00 • committed by GitHub
parent 670f3db5c8
commit 403320ae3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}'`}})`);
}