fix aux column error when using non-default rowid values, needs test

This commit is contained in:
Alex Garcia 2024-11-17 15:12:39 -08:00
parent da29ace630
commit 1a216a684d
3 changed files with 84 additions and 62 deletions

View file

@ -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)