Skip to content

[Bug]: select count(*) from fulltext index table oom. #21414

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

06d0ed2

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Image

profile.zip

Expected Behavior

No response

Steps to Reproduce

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.

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Feb 19, 2025
  2. added this to the 2.1.0 milestone on Feb 19, 2025
  3. cpegeric commented on Feb 19, 2025

    @cpegeric
    Contributor

    this is wrong SQL. better verify again.

  4. Ariznawlll commented on Feb 19, 2025

    @Ariznawlll
    CollaboratorAuthor

    错误的sql也不应该导致oom

    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;

  5. Ariznawlll commented on Feb 20, 2025

    @Ariznawlll
    CollaboratorAuthor

    repro:

    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;

    Image
  6. 11 remaining items

  7. modified the milestones: 2.1.0, 2506 on Apr 27, 2025
  8. fengttt commented on Apr 27, 2025

    @fengttt
    Contributor

    Should continue investigating the build hash 2G bug.

  9. assigned and unassigned on May 26, 2025
  10. cpegeric commented on Jun 12, 2025

    @cpegeric
    Contributor

    please verify again.

  11. Ariznawlll commented on Jul 14, 2025

    @Ariznawlll
    CollaboratorAuthor

    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;

    Image

    SELECT id from test where match(content) against ('第八届理事会' in natural language mode) limit 100;
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions