Partition pruning not working with utf8 / skip-character-set-client-handshake options in 5.5
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
||||
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Invalid
|
Undecided
|
Unassigned | |||
5.5 |
Triaged
|
Low
|
Unassigned | |||
5.6 |
Triaged
|
Low
|
Unassigned | |||
5.7 |
Triaged
|
Low
|
Unassigned |
Bug Description
Partition pruning doesn't seem to work properly when using RANGE partition and to_days();
With MySQL 5.1:
mysql> explain partitions SELECT sum(s) FROM t WHERE time_id >= '2012-10-09 00:00:00' AND time_id < '2012-10-16 00:00:00' AND cid = 'TpqiCvy6S9af5K
+----+-
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-
| 1 | SIMPLE | t | PM_2010_
+----+-
1 row in set (0.01 sec)
With MySQL Percona Server 5.5:
mysql> explain partitions SELECT sum(s) FROM t WHERE time_id >= '2012-10-09 00:00:00' AND time_id < '2012-10-16 00:00:00' AND cid = 'TpqiCvy6S9af5K
+----+-
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-
| 1 | SIMPLE | t | PM_2010_
+----+-
1 row in set (0.00 sec)
summary: |
- Partition pruning not working on range partition in 5.5 + Partition pruning not working on range partition using to_days() in 5.5 |
Changed in percona-server: | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
tags: | added: upstream |
+1, This is impacting me as well.