pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] PR #943: Fix a detail in the tap test case.
3+ messages / 2 participants
[nested] [flat]
* [pgvector/pgvector] PR #943: Fix a detail in the tap test case.
@ 2026-01-04 08:15 "zthhhhh (@zthhhhh)" <noreply+zthhhhh@github.com>
0 siblings, 0 replies; 3+ messages in thread
From: zthhhhh (@zthhhhh) @ 2026-01-04 08:15 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi pgvector team,
Recently, while writing regression tests for my patch, I discovered an issue. In the test script 005_ivfflat_query_recall.pl, ivfflat vector indexes are created separately for l2_distance, ip_distance, and cosine_distance. However, only the recall results for l2_distance are verified against expected values. This appears to be an oversight, although it likely has minimal impact, I still believe it's worth fixing.
inline patch 1: test/t/005_ivfflat_query_recall.pl (+1/-1 lines) download inline-1.patch
diff --git a/test/t/005_ivfflat_query_recall.pl b/test/t/005_ivfflat_query_recall.pl
index 714e3a289..bf53b4a58 100644
--- a/test/t/005_ivfflat_query_recall.pl
+++ b/test/t/005_ivfflat_query_recall.pl
@@ -35,7 +35,7 @@
my $query = $node->safe_psql("postgres", "SELECT v FROM tst WHERE i = $id;");
my $res = $node->safe_psql("postgres", qq(
SET enable_seqscan = off;
- SELECT v FROM tst ORDER BY v <-> '$query' LIMIT 1;
+ SELECT v FROM tst ORDER BY v '$operator' '$query' LIMIT 1;
));
is($res, $query);
}
^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] PR #943: Fix a detail in the tap test case.
@ 2026-01-05 20:42 ` "ankane (@ankane)" <noreply+ankane@github.com>
1 sibling, 0 replies; 3+ messages in thread
From: ankane (@ankane) @ 2026-01-05 20:42 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] PR #943: Fix a detail in the tap test case.
@ 2026-01-05 20:43 ` "ankane (@ankane)" <noreply+ankane@github.com>
1 sibling, 0 replies; 3+ messages in thread
From: ankane (@ankane) @ 2026-01-05 20:43 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi @zthhhhh, thanks for reporting. Simplified the test case in the commit above.
^ permalink raw [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-01-05 20:43 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-01-04 08:15 [pgvector/pgvector] PR #943: Fix a detail in the tap test case. "zthhhhh (@zthhhhh)" <noreply+zthhhhh@github.com>
2026-01-05 20:42 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-01-05 20:43 ` "ankane (@ankane)" <noreply+ankane@github.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox