Commit 87df59a
lijunrui
test(vector-search): size guard-test query vectors to the resolved index dimension
The branch's new up-front query-dimension guard validates every query
against the vector column's dimension before planning and before the
empty-plan early return. For an ARRAY<FLOAT> IVF_FLAT column with no
explicit dimension, the resolver defaults to 128, so the dim-1 query
vectors (`vec![1.0]`) in two guard tests failed loud before reaching the
guards they exercise:
- execute_read_empty_plan_reserved_projection_fails_loud
- execute_read_filter_with_deletion_vectors_passes_guard
Pin `fields.embedding.dimension = 4` and size the query vectors to match,
so each test reaches its reserved-projection / deletion-vector residual
guard as intended. Test-only; production behavior is unchanged.1 parent 2607378 commit 87df59a
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4512 | 4512 | | |
4513 | 4513 | | |
4514 | 4514 | | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
4515 | 4518 | | |
4516 | 4519 | | |
4517 | 4520 | | |
4518 | 4521 | | |
4519 | 4522 | | |
4520 | | - | |
| 4523 | + | |
4521 | 4524 | | |
4522 | 4525 | | |
4523 | 4526 | | |
| |||
4939 | 4942 | | |
4940 | 4943 | | |
4941 | 4944 | | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
4942 | 4949 | | |
4943 | 4950 | | |
4944 | 4951 | | |
| |||
4949 | 4956 | | |
4950 | 4957 | | |
4951 | 4958 | | |
4952 | | - | |
| 4959 | + | |
4953 | 4960 | | |
4954 | 4961 | | |
4955 | 4962 | | |
| |||
0 commit comments