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

GROUP BY handler works in promiscuous mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None
    • 2018-17, 2018-18, 2018-19, 2018-20, 2018-21, 2019-01, 2019-02

    Description

      GROUP BY handler processes every query not only that contains GROUP BY or aggregates in projection. Here is an output of the EXPLAIN for the simple SELECT that mustn't use GROUP BY handler for processing.

      MariaDB [test]> explain extended select i from cs1;
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+---------------------------------+
      | id   | select_type | table | type | possible_keys | key  | key_len | ref  | rows | filtered | Extra                           |
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+---------------------------------+
      |    1 | SIMPLE      | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL |     NULL | Storage engine handles GROUP BY |
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+---------------------------------+
      1 row in set, 1 warning (0.001 sec)
      

      But it must look like this:

      MariaDB [test]> explain extended select i from cs1;
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+-------+
      | id   | select_type | table | type | possible_keys | key  | key_len | ref  | rows | filtered | Extra |
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+-------+
      |    1 | SIMPLE      | cs1   | ALL  | NULL          | NULL | NULL    | NULL | 2000 |   100.00 |       |
      +------+-------------+-------+------+---------------+------+---------+------+------+----------+-------+
      1 row in set, 1 warning (0.004 sec)
      

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              drrtuy Roman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 4.25h
                  4.25h

                  Git Integration

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