[MDEV-20831] Table partitioned by LIST/RANGE COLUMNS(inet6) can be created, but not inserted into Created: 2019-10-14  Updated: 2019-10-18  Resolved: 2019-10-15

Status: Closed
Project: MariaDB Server
Component/s: Data types, Partitioning
Affects Version/s: 10.5
Fix Version/s: 10.5.0

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
Relates
relates to MDEV-274 The data type for IPv6/IPv4 addresses... Closed
relates to MDEV-20784 Testing for MDEV-274 (INET6, data typ... Closed
relates to MDEV-20856 Bad values in metadata views for part... Closed

 Description   

create or replace table t1 (a inet6) partition by list columns(a) (partition p1 values in ('::'));
insert into t1 values ('::');

10.5 fa843790

> insert into t1 values ('::');
ERROR 1654 (HY000): Partition column values of incorrect type

I am not sure whether such partitioning is supposed to be supported. Since it works for BINARY and CHAR, I would expect yes; but if it doesn't work, it should be failing upon table creation, like with other data types:

> create or replace table t1 (a decimal) partition by list columns(a) (partition p1 values in (0));
ERROR 1659 (HY000): Field 'a' is of a not allowed type for this type of partitioning


Generated at Thu Feb 08 09:02:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.