报错复现如下:

hive> alter table xxxxxxxxxxx add partition (dt = '2021-04-01') location '/yyy/2021-04-01';
FAILED: ValidationFailureSemanticException partition spec {dt=2021-04-01} doesn't contain all (2) partition columns

 

解决方案:

alter table xxxxxx add partition (dt = '2021-04-01',area = 'shanghai') location '/yyy/2021-04-01';
 

Logo

一站式 AI 云服务平台

更多推荐