Bug #43903 | Partition pruning doesnt work for table partitioned by timestamp. | ||
---|---|---|---|
Submitted: | 27 Mar 2009 9:54 | Modified: | 27 Mar 2009 10:08 |
Reporter: | Jay Vid | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.1 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | Partition pruning, timestamp |
[27 Mar 2009 9:54]
Jay Vid
[27 Mar 2009 10:08]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Please read at http://dev.mysql.com/doc/refman/5.1/en/partitioning-pruning.html: Pruning can also be applied for tables partitioned on a DATE or DATETIME column when the partitioning expression uses the YEAR() or TO_DAYS() function. So it is expected pruning does not work or partially works with TIMESTAMP columns See bug #24245 for more details.
[27 Mar 2009 10:14]
Sveta Smirnova
Additionally explain partitions select * from test1 where event_time = '2009-03-23' \G; works in wrong way, because query "select * from test1 where event_time = '2009-03-23';" returns no result. But this probably same as bug #37532