mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
gha: more fixes
This commit is contained in:
parent
0f08b94dbd
commit
64745ab4a2
2 changed files with 10 additions and 6 deletions
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
|
|
@ -45,6 +45,9 @@ jobs:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
- run: ./scripts/vendor.sh
|
- run: ./scripts/vendor.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: ls vendor/
|
- run: ls vendor/
|
||||||
|
|
|
||||||
|
|
@ -612,19 +612,20 @@ def test_smoke():
|
||||||
assert vchunk["rowid"] == 1
|
assert vchunk["rowid"] == 1
|
||||||
assert vchunk["vectors"] == bytearray(int(1024 * 4 * 2))
|
assert vchunk["vectors"] == bytearray(int(1024 * 4 * 2))
|
||||||
|
|
||||||
assert (
|
assert re.match(
|
||||||
|
"SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:knn:",
|
||||||
|
|
||||||
explain_query_plan(
|
explain_query_plan(
|
||||||
"select * from vec_xyz where a match X'' and k = 10 order by distance"
|
"select * from vec_xyz where a match X'' and k = 10 order by distance"
|
||||||
)
|
)
|
||||||
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:knn:"
|
|
||||||
)
|
)
|
||||||
assert (
|
assert re.match(
|
||||||
|
"SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:fullscan",
|
||||||
explain_query_plan("select * from vec_xyz")
|
explain_query_plan("select * from vec_xyz")
|
||||||
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:fullscan"
|
|
||||||
)
|
)
|
||||||
assert (
|
assert re.match(
|
||||||
|
"SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 3:point",
|
||||||
explain_query_plan("select * from vec_xyz where rowid = 4")
|
explain_query_plan("select * from vec_xyz where rowid = 4")
|
||||||
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 3:point"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
|
db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue