Bug #39548 | cannot partition on an ENUM numeric expression | ||
---|---|---|---|
Submitted: | 19 Sep 2008 20:41 | Modified: | 15 Dec 2008 11:19 |
Reporter: | Edmund Mierzwa | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.1.28, 5.1, 6.0 bzr | OS: | Any (Linux, windows XP sp2) |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
Tags: | partitioning enum |
[19 Sep 2008 20:41]
Edmund Mierzwa
[19 Sep 2008 21:52]
Sveta Smirnova
Thank you for the report. Verified as described.
[17 May 2011 7:13]
Pavel Dobryakov
Yes, strange that the partitioning is not supported by data type ,actually representing a integer .
[29 Sep 2014 23:22]
Bill Karwin
For what it's worth, you can use KEY partitioning on an ENUM column.
[4 Dec 2014 18:25]
Jon Stephens
That's correct, Bill, and it is supported. Note that an ENUM can be used as a partitioning key if and only if the table uses KEY or LINEAR KEY partitioning (see BUG#75094). Note that pruning of queries on tables partitioned by [LINEAR] KEY works with integer columns only, thus not with ENUM columns because it's not an integer type.