Skip to content

Commit 9bfeaa7

Browse files
authored
Auxiliary column support (asg017#123)
* initial pass at PARTITION KEY support. * Initial pass, allow auxiliary columns on vec0 virtual tables * update TODO * unit tests * gha this PR branch * fixup tests * doc internal * fix tests, KNN/rowids in * define SQLITE_INDEX_CONSTRAINT_OFFSET * whoops * update tests, syrupy, use uv * un ignore pyproject.toml * dot * tests/ * type error? * win: .exe, update error name * try fix macos python, paren around expr? * win bash? * dbg :( * explicit error * op * dbg win * win ./tests/.venv/Scripts/python.exe * block UPDATEs on partition key values for now * test this branch * accidentally removved "partition key type mistmatch" block during merge * typo ugh * bruv * start aux snapshots * drop aux shadow table on destroy * enforce column types * block WHERE constraints on auxiliary columns in KNN queries * support delete * support UPDATE on auxiliary columns
1 parent 6658624 commit 9bfeaa7

File tree

6 files changed

+1249
-8
lines changed

6 files changed

+1249
-8
lines changed

.github/workflows/test.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
- partition-by
7+
- auxiliary
78
permissions:
89
contents: read
910
jobs:

TODO

+8
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
- [ ] UPDATE on partition key values
44
- remove previous row from chunk, insert into new one?
55
- [ ] properly sqlite3_vtab_nochange / sqlite3_value_nochange handling
6+
7+
# auxiliary columns
8+
9+
- later:
10+
- NOT NULL?
11+
- perf: INSERT stmt should be cached on vec0_vtab
12+
- perf: LEFT JOIN aux table to rowids query in vec0_cursor for rowid/point
13+
stmts, to avoid N lookup queries

0 commit comments

Comments
 (0)