Skip to content

Commit

Permalink
gha: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Apr 20, 2024
1 parent 0f08b94 commit 64745ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: ./scripts/vendor.sh
shell: bash
- run: ls vendor/
Expand Down
13 changes: 7 additions & 6 deletions tests/test-loadable.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,19 +612,20 @@ def test_smoke():
assert vchunk["rowid"] == 1
assert vchunk["vectors"] == bytearray(int(1024 * 4 * 2))

assert (
assert re.match(
"SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:knn:",

explain_query_plan(
"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")
== "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")
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 3:point"
)

db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
Expand Down

0 comments on commit 64745ab

Please sign in to comment.