列类型为binary导致表重分布失败
标题:列类型为binary导致重分布失败
产品线:Gbase8a MPP cluster 版本: 9.5.3.27.17
问题现象:表重分布时,任务进度一直在10%没有进展,通过show processlist查看,重分布任务处理回滚状态,查看express日志显示报错信息reason: pata too long for column 'htmldata' 。
原因分析:根据报错信息查看表该表的创建语句,显示该htmldata列为binary(1)类型,手动查询该列信息报错,提示DETAIL: (GBA-01EX-700) Gbase general error: should be ‘this->len <= len’,初步判定是该列数据异常导致。
处理过程:1、取消异常表的分布任务
gbase>cancel rebalance table tbname;
2、将该列数据进行转存
# gbase> alter table test2 add b varchar(200);
gbase> update test2 set b=htmldata;
gbase> alter table test2 drop htmldata;
gbase> ALTER TABLE test2 CHANGE b htmldata varchar(200);
3、从新对该表进行数据重分布。
热门帖子
- 12025-12-01浏览数:182764
- 22023-05-09浏览数:25062
- 42023-09-25浏览数:18526
- 52020-05-11浏览数:17529