mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
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:
parent
670f3db5c8
commit
403320ae3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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}'`}})`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue