Commit 6608915
committed
Fix efficient-filter test to satisfy LIMIT <= k contract
The efficient-filter test used LIMIT 5 with option='k=3', which the
branch rejects at push-down time via
VectorSearchQueryBuilder#validateLimitWithinK. Change LIMIT to 3 so the
query passes validation and actually exercises the k-NN execution path.
The discriminator is preserved: query near TX with WHERE state='CA' and
k=3 would return zero rows under POST filtering (the three nearest
candidates are all TX and get filtered out) and returns exactly {4,5,6}
under efficient filtering, which navigates HNSW toward the CA cluster.
Signed-off-by: Eric Wei <mengwei.eric@gmail.com>1 parent 03ae19a commit 6608915
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments