[MDEV-33146] CONVERT TABLE TO PARTITION does not work for default list partition Created: 2023-12-31  Updated: 2023-12-31

Status: Open
Project: MariaDB Server
Component/s: Partitioning
Affects Version/s: 10.7, 10.11, 11.0, 11.1, 11.2, 11.3
Fix Version/s: 10.11, 11.0, 11.1, 11.2, 11.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-22165 CONVERT TABLE: move in partition from... Closed
Relates
relates to MDEV-33147 Wrong value in the error message for ... Open

 Description   

--source include/have_partition.inc
 
create table t (a int) partition by list(a) (partition p0 values in (1,2));
create table t1 (a int);
insert into t1 values (10);
alter table t convert table t1 to partition pn default;
drop table if exists t1, t;

10.7.8

query 'alter table t convert table t1 to partition pn default' failed: ER_NO_PARTITION_FOR_GIVEN_VALUE (1526): Table has no partition for value 0

Note that the value in the error message is also wrong, it is not related to the default-ness of the partition, see MDEV-33147.


Generated at Thu Feb 08 10:36:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.