Doris中修改表的时候出现错误提示:Can not alter table when there are temp partitions in table

提问者:帅平 问题分类:大数据
Doris中修改表的时候出现错误提示:Can not alter table when there are temp partitions in table。怎么弄?
Doris中修改表的时候出现错误提示:Can not alter table when there are temp partitions in table
1 个回答
安若兮
安若兮
这里主要是由于当前的表存在临时的分区,所以这里我们需要把临时分区给删除掉即可。
首先查看临时分区:
show temporary partitions from user;

再删除查找出来的分区:
alter table user drop temporary partition p202205

再执行修改表结构即可。
发布于:1年前 (2022-11-02) IP属地:四川省
我来回答