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

TEXT column extent elimination should cover WHERE...LIKE clauses

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 23.10.0
    • Icebox
    • None
    • None

    Description

      Currently TEXT column is not doing any extent elimination for WHERE...LIKE clauses. It should cover this clause also.

      Repro
      ------
      CREATE TABLE t(d TEXT) ENGINE=COLUMNSTORE;
      INSERT INTO t(d) VALUES ('b'),('b'),('b');
      SELECT CALSETTRACE(1);
      MariaDB [MCOL4580]> SELECT COUNT FROM t WHERE d like '%c%';----------

      COUNT

      ----------

      0

      ----------
      1 row in set, 1 warning (0.010 sec)

      MariaDB [MCOL4580]> SELECT REGEXP_SUBSTR(CALGETTRACE(1),'(BlocksTouched-[^;]);') AS touched, REGEXP_SUBSTR(CALGETTRACE(1),'(PartitionBlocksEliminated-[^;]);') AS eliminated;
      ----------------------------------------------+

      touched eliminated

      ----------------------------------------------+

      BlocksTouched-3; PartitionBlocksEliminated-0;

      ----------------------------------------------+
      1 row in set (0.000 sec)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              susil.behera susil.behera
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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