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
{{ message }}
Repository navigation
[Bug]: select count(*) from fulltext index table oom. #21414
CREATE TABLE `test` (
`id` int NOT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text DEFAULT NULL,
PRIMARY KEY (`id`),
FULLTEXT `f01`(`content`)
) ;
load data local infile '/root/weilu/zhwiki-latest-pages-articles-multistream6.xml-p7096380p8596379.csv' into table test fields terminated by ',' enclosed by '"' escaped by '';
select name, index_table_name from mo_catalog.mo_indexes where name = 'f01';
select count(*), word from `__mo_index_secondary_01951c1d-1589-756a-a9dc-671e85e2fae4` group by word;
the load file is huge, please contact me privately.
the correct sql is:select count(*) as word_count, word from __mo_index_secondary_01951cd8-ceb6-7119-953c-50c4244bf512 group by word order by word_count desc limit 200;
CREATE TABLE test ( id int NOT NULL, title varchar(255) DEFAULT NULL, content text DEFAULT NULL,
PRIMARY KEY (id),
FULLTEXT f01(content)
) ;
load data local infile '/root/weilu/zhwiki-latest-pages-articles-multistream6.xml-p7096380p8596379.csv' into table test fields terminated by ',' enclosed by '"' escaped by '';
select name, index_table_name from mo_catalog.mo_indexes where name = 'f01';
select count(*), word from __mo_index_secondary_0195227b-e5a4-79f1-970f-3bf68bd1dda5 group by word;
CREATE TABLE test (
id int NOT NULL,
title varchar(255) DEFAULT NULL,
content text DEFAULT NULL,
PRIMARY KEY (id),
FULLTEXT f01(content)
) ;
load data local infile '/root/weilu/zhwiki-latest-pages-articles-multistream6.xml-p7096380p8596379.csv' into table test fields terminated by ',' enclosed by '"' escaped by '';
select name, index_table_name from mo_catalog.mo_indexes where name = 'f01';
select count(*), word from __mo_index_secondary_0198085e-3722-7bdb-a57f-1241541f5874 group by word;
SELECT id from test where match(content) against ('第八届理事会' in natural language mode) limit 100;
Activity
cpegeric commentedon Feb 19, 2025
this is wrong SQL. better verify again.
Ariznawlll commentedon Feb 19, 2025
错误的sql也不应该导致oom
the correct sql is:select count(*) as word_count, word from
__mo_index_secondary_01951cd8-ceb6-7119-953c-50c4244bf512group by word order by word_count desc limit 200;Ariznawlll commentedon Feb 20, 2025
repro:
CREATE TABLE
test(idint NOT NULL,titlevarchar(255) DEFAULT NULL,contenttext DEFAULT NULL,PRIMARY KEY (
id),FULLTEXT
f01(content)) ;
load data local infile '/root/weilu/zhwiki-latest-pages-articles-multistream6.xml-p7096380p8596379.csv' into table test fields terminated by ',' enclosed by '"' escaped by '';
select name, index_table_name from mo_catalog.mo_indexes where name = 'f01';
select count(*), word from
__mo_index_secondary_0195227b-e5a4-79f1-970f-3bf68bd1dda5group by word;11 remaining items
fengttt commentedon Apr 27, 2025
Should continue investigating the build hash 2G bug.
cpegeric commentedon Jun 12, 2025
please verify again.
Ariznawlll commentedon Jul 14, 2025
CREATE TABLE test (
id int NOT NULL,
title varchar(255) DEFAULT NULL,
content text DEFAULT NULL,
PRIMARY KEY (id),
FULLTEXT f01(content)
) ;
load data local infile '/root/weilu/zhwiki-latest-pages-articles-multistream6.xml-p7096380p8596379.csv' into table test fields terminated by ',' enclosed by '"' escaped by '';
select name, index_table_name from mo_catalog.mo_indexes where name = 'f01';
select count(*), word from __mo_index_secondary_0198085e-3722-7bdb-a57f-1241541f5874 group by word;
SELECT id from test where match(content) against ('第八届理事会' in natural language mode) limit 100;
