mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
fix aux column error when using non-default rowid values, needs test
This commit is contained in:
parent
da29ace630
commit
1a216a684d
3 changed files with 84 additions and 62 deletions
28
test.sql
28
test.sql
|
|
@ -1,10 +1,36 @@
|
|||
|
||||
.load dist/vec0
|
||||
.echo on
|
||||
.bail on
|
||||
|
||||
.mode qbox
|
||||
|
||||
create virtual table v using vec0(
|
||||
vector float[1],
|
||||
+description text
|
||||
);
|
||||
insert into v(rowid, vector, description) values (1, '[1]', 'aaa');
|
||||
select * from v;
|
||||
|
||||
.exit
|
||||
|
||||
create virtual table vec_articles using vec0(
|
||||
article_id integer primary key,
|
||||
year integer partition key,
|
||||
headline_embedding float[1],
|
||||
+headline text,
|
||||
+url text,
|
||||
word_count integer,
|
||||
print_section text,
|
||||
print_page integer,
|
||||
pub_date text,
|
||||
);
|
||||
|
||||
insert into vec_articles values (1111, 2020, '[1]', 'headline', 'https://...', 200, 'A', 1, '2020-01-01');
|
||||
|
||||
select * from vec_articles;
|
||||
|
||||
.exit
|
||||
|
||||
|
||||
create table movies(movie_id integer primary key, synopsis text);
|
||||
INSERT INTO movies(movie_id, synopsis)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue