Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/ext/vec1/test/vec1rotate2.test # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / ext / vec1 / test / vec1rotate2.test` 42 lines ยท 930 bytes Raw Blame History 1 # 2026-03-14 2 # 3 # The author disclaims copyright to this source code. In place of 4 # a legal notice, here is a blessing: 5 # 6 # May you do good and not evil. 7 # May you find forgiveness for yourself and forgive others. 8 # May you share freely, never taking more than you give. 9 # 10 #*********************************************************************** 11 # 12 # 13 14 source [file join [file dirname [info script]] vec1_common.tcl] 15 set testprefix vec1rotate2 16 vec1_load db 17 18 do_execsql_test 1.0 { 19 CREATE VIRTUAL TABLE v1 USING vec1(v); 20 21 WITH s(i) AS ( 22 SELECT 1 UNION ALL SELECT i+1 FROM s WHERE i<34000 23 ) 24 INSERT INTO v1(rowid, v) SELECT i, random_vector(256) FROM s; 25 } 26 27 proc progress {percent msg} { 28 puts "${percent}%: $msg" 29 } 30 db func progress progress 31 32 do_test 1.1 { 33 set T [db one { 34 SELECT 35 vec1_train(v, '{codesize:16, opq:1, nopq_round:1, progress:"progress"}') 36 FROM v1 37 }] 38 set {} {} 39 } {} 40 41 finish_test 42