tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.25k stars 286 forks source link

add more tests for vector feature #1603

Closed sivukhin closed 3 months ago

sivukhin commented 3 months ago

Context

Add simple "fuzz"-test which just execute multiple INSERT/UPDATE/DELETE/SEARCH operations against table with vector index + extend TCL test suite with couple more potentially tricky cases (rollback of the transaction and table with several vector columns)

fuzz-test is ignored by default but can be ran on demand with following command (on my laptop it runs within 15 minutes):

$> cargo test vector_fuzz_test -- --nocapture --include-ignored
...
running 1 test
============== ATTEMPT 0 (seed 5584570835305270879u64, dim 163, operations 1) ================
...
============== ATTEMPT 9999 (seed 11747876430315692925u64, dim 899, operations 73) ================
test vector_test ... ok
...