From 2c879e38ab9287989105126fadaaa59e50379ce7 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 18 Nov 2026 01:21:47 -0800 Subject: [PATCH] Simplified test [skip ci] --- test/expected/ivfflat_vector.out | 6 ++++-- test/sql/ivfflat_vector.sql | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/expected/ivfflat_vector.out b/test/expected/ivfflat_vector.out index 5fb327da..462ea23c 100644 --- a/test/expected/ivfflat_vector.out +++ b/test/expected/ivfflat_vector.out @@ -262,14 +262,16 @@ DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples [0,0,0] (3 rows) -SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 WHERE t.val != '[0,0,0]' ORDER BY t.val; +SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 ORDER BY t.val; +DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples DEBUG: ivfflat scan no longer fits into work_mem after 1 tuples val | val ---------+--------- + [0,0,0] | [0,0,0] [1,1,1] | [1,1,1] [1,2,3] | [1,2,3] -(2 rows) +(3 rows) RESET client_min_messages; DROP TABLE t; diff --git a/test/sql/ivfflat_vector.sql b/test/sql/ivfflat_vector.sql index 060c06dd..44b3aefd 100644 --- a/test/sql/ivfflat_vector.sql +++ b/test/sql/ivfflat_vector.sql @@ -143,7 +143,7 @@ CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1); SET client_min_messages = DEBUG; SELECT * FROM t ORDER BY val <-> '[3,3,3]'; -SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 WHERE t.val != '[0,0,0]' ORDER BY t.val; +SELECT * FROM t CROSS JOIN LATERAL (SELECT * FROM t t2 ORDER BY val <-> t.val LIMIT 1) t2 ORDER BY t.val; RESET client_min_messages; DROP TABLE t;