Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
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
- relates to
-
MCOL-1052 Implement GROUP BY pushdown support
- Closed