[MDEV-13665] EXCHANGE PARTITION does not work with compressed columns Created: 2017-08-28  Updated: 2017-08-28  Resolved: 2017-08-28

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Alter Table, Partitioning
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-13342 Testing for MDEV-11371 (Big column co... Closed

 Description   

bb-10.3-MDEV-11371 commit 5626786b055a5990a8913e92e41550f5fea974ec
exchange partition returns ERROR 1736 (HY000): Tables have different definitions
if a column is just varchar(), then query is executed without errors.

CREATE TABLE t1 (i int, a VARCHAR(1000) COMPRESSED)
	PARTITION BY RANGE COLUMNS (a)(
    PARTITION p0 VALUES LESS THAN ('g'),
    PARTITION p1 VALUES LESS THAN ('m'),
    PARTITION p2 VALUES LESS THAN ('t'),
    PARTITION p3 VALUES LESS THAN ('w'));
 
 CREATE TABLE t2 like t1;
 ALTER TABLE t2  REMOVE PARTITIONING;
 ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;



 Comments   
Comment by Sergey Vojtovich [ 2017-08-28 ]

Fixed in bb-10.3-MDEV-11371. I have not added provided test case, since I assume it is to be added to column_compression_parts.test

Generated at Thu Feb 08 08:07:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.