Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5, 10.6
Description
If a table have partitions and you try to change a column
(modify or change) with an index, which is not the partitions key,
algorithm = instant not work.
MariaDB [l1]> ALTER online TABLE t1 MODIFY COLUMN `f4` VARCHAR(500) , ALGORITHM=INSTANT, LOCK=NONE; |
ERROR 1846 (0A000): ALGORITHM=INSTANT is not supported. Reason: ADD INDEX. Try ALGORITHM=NOCOPY |
To reproduce:
|
|
drop table if exists t1; |
|
|
CREATE TABLE `t1` (
|
`f1` datetime ,
|
`f2` VARCHAR(2) , |
`f3` VARCHAR(200) , |
`f4` VARCHAR(100) , |
INDEX `i3` (`f4`) )
|
/*!50100 PARTITION BY RANGE COLUMNS(`f2`) (PARTITION `p_01` VALUES LESS THAN ('02') ENGINE = InnoDB, PARTITION `p_31` VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB) */; |
|
|
ALTER online TABLE t1 MODIFY COLUMN `f4` VARCHAR(500) , ALGORITHM=INSTANT, LOCK=NONE; |
If you do the testcase without index
OR !
without partition term,
it works.
Attachments
Issue Links
- relates to
-
MDEV-16282 ALTER TABLE t ADD COLUMN c INT, ADD INDEX(c), ALGORITHM=NOCOPY fails
-
- Stalled
-
-
MDEV-21693 ALGORITHM=INSTANT does not work for partitioned tables
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Zendesk Related Tickets | 204836 | |
Zendesk active tickets | 204836 |
Link | This issue is blocked by MDEV-16282 [ MDEV-16282 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] |
Fix Version/s | 10.5 [ 23123 ] |
Assignee | Oleksandr Byelkin [ sanja ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Yuchen Pei [ JIRAUSER52627 ] |
Link | This issue is blocked by MDEV-16282 [ MDEV-16282 ] |
Link | This issue relates to MDEV-16282 [ MDEV-16282 ] |
Affects Version/s | 10.5 [ 23123 ] |
Fix Version/s | 10.5 [ 23123 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Alexey Botchkov [ holyfoot ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.5.28 [ 29952 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.6.21 [ 29953 ] | |
Fix Version/s | 10.11.11 [ 29954 ] | |
Fix Version/s | 11.4.5 [ 29956 ] | |
Fix Version/s | 11.7.2 [ 29914 ] |