You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KEY `embedding_idx` USING ivfflat (`embedding`) lists = 20 op_type 'vector_l2_ops'
647
+
);
648
+
select count(*) from mo_catalog.mo_indexes as i join mo_catalog.mo_tables as t on i.table_id = t.rel_id and t.relname = "rag_table" and i.algo="ivfflat"; -- 3 ivf index tables
649
+
count(*)
650
+
3
651
+
select count(*) from mo_catalog.mo_tables where reldatabase = "vecdb3"; -- rag_table + 3 ivf index tables
652
+
count(*)
653
+
4
654
+
drop index embedding_idx on rag_table;
655
+
select count(*) from mo_catalog.mo_indexes as i join mo_catalog.mo_tables as t on i.table_id = t.rel_id and t.relname = "rag_table" and i.algo="ivfflat"; -- 0 ivf index tables
656
+
count(*)
657
+
0
658
+
select count(*) from mo_catalog.mo_tables where reldatabase = "vecdb3"; -- rag_table + 0 ivf index tables
Copy file name to clipboardExpand all lines: test/distributed/cases/array/array_index.sql
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -694,5 +694,30 @@ alter table vector_index_08 add column d vecf32(3) not null after c;
694
694
select*from vector_index_08;
695
695
696
696
-- post
697
-
SET experimental_ivf_index =0;
698
697
dropdatabase vecdb2;
698
+
699
+
700
+
createdatabasevecdb3;
701
+
use vecdb3;
702
+
703
+
CREATETABLE `rag_table` (
704
+
`id`intNOT NULL AUTO_INCREMENT,
705
+
`title`varchar(200) DEFAULT NULL,
706
+
`embedding` vecf32(8) DEFAULT NULL,
707
+
`content`text DEFAULT NULL,
708
+
PRIMARY KEY (`id`),
709
+
KEY `embedding_idx` USING ivfflat (`embedding`) lists =20 op_type 'vector_l2_ops'
710
+
);
711
+
712
+
selectcount(*) frommo_catalog.mo_indexesas i joinmo_catalog.mo_tablesas t oni.table_id=t.rel_idandt.relname="rag_table"andi.algo="ivfflat"; -- 3 ivf index tables
selectcount(*) frommo_catalog.mo_indexesas i joinmo_catalog.mo_tablesas t oni.table_id=t.rel_idandt.relname="rag_table"andi.algo="ivfflat"; -- 0 ivf index tables
0 commit comments