Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(search): judge the joined statement's rows against exact evaluation, not the approximate HNSW plan
garrytan3723db33f713
diff --git a/test/search/vector-index-walk.test.ts b/test/search/vector-index-walk.test.tsindex 0d7808cee6..3d32a96734 100644--- a/test/search/vector-index-walk.test.ts+++ b/test/search/vector-index-walk.test.ts@@ -158,7 +158,9 @@ describe('vector index walk (PGLite)', () => {const materialized = await planAndRows(stmt.sql, params, { ...settings, enable_material: 'on' });expect(materializedPages(materialized.nodes)).not.toEqual([]);expect(shape(rows)).toHaveLength(20);- expect(shape(rows)).toEqual(shape(materialized.rows));+ // Judged under exact evaluation (header): the materialized plan walks HNSW, whose+ // approximate window depends on the randomly levelled graph, so it is not the reference.+ expect(shape(rows)).toEqual(shape(await exactRows(stmt.sql, params)));}}});