【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【问题现象及影响】
obdumper 导出表ddl信息丢失table group信息
版本:4.0.1
复现:
建表组:create tablegroup testgroup1 partition by hash partitions 10;
建表:create table test100(id int ,name char(10),address char(10)) tablegroup testgroup1 partition by hash(id) partitions 10;
导出表结构:obdumper -h 1.2.3.4 -P 2883 -u root -t tenant1-c cluster1 -p ‘12345’ --sys-password ‘12345’ -D test --ddl --table test100 -f /home/admin/dump/
查看导出表结构:
cat dump/data/test/TABLE/test100-schema.sql
create table if not exists test100
(
id
int(11),
name
char(10),
address
char(10)
)
default charset=utf8mb4
default collate=utf8mb4_general_ci
PARTITION BY HASH (id) PARTITIONS 10;
查看源表结构:
MySQL [test]> show create table test100;
| test100 | CREATE TABLE test100
(
id
int(11) DEFAULT NULL,
name
char(10) DEFAULT NULL,
address
char(10) DEFAULT NULL
) DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = ‘zstd_1.3.8’ REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0 TABLEGROUP = ‘testgroup1’
partition by hash(id)
(partition p0,
partition p1,
partition p2,
partition p3,
partition p4,
partition p5,
partition p6,
partition p7,
partition p8,
partition p9)
【附件】