Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-5599

LIKE '%1%' in WHERE part never finishes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 23.10.0
    • 23.10.1
    • PrimProc
    • None
    • 2023-11

    Description

      Consider the case

      MariaDB [test]> create table foo (a varchar(10)) engine=columnstore;
      Query OK, 0 rows affected (9.094 sec)
       
      MariaDB [test]>
      MariaDB [test]> insert into foo values ('dkdj');
      Query OK, 1 row affected (1.855 sec)
       
      MariaDB [test]> select * from foo where a like '%k%';
      +------+
      | a    |
      +------+
      | dkdj |
      +------+
      1 row in set (0.022 sec)
       
      MariaDB [test]> select * from foo where a like '%1%'; <================ This query is running forever
      

      Attachments

        Activity

          People

            sergey.zefirov Sergey Zefirov
            drrtuy Roman
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.