2023/11/25 Hive自动分区特性向分区表各个分区中插入对应数据报错

错误信息

 Error while compiling statement: FAILED: SemanticException [Error 10096]: Dynamic partition strict mode requires at least one static partition column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict

 解决方法加上以下三个set

set hive.exec.dynamic.partition=true;

set hive.exec.dynamic.partition.mode=nonstrict;

set hive.exec.max.dynamic.partitions.pernode=1000;

insert overwrite table dividends partition(`exchange`,`symbol`) select

`ymd`,`dividend`,`exchange`,`symbol` from dividends_unpartitioned

posted @ 2023-11-25 17:35  樱花开到我身边  阅读(222)  评论(0)    收藏  举报