错误如下:

SQL 错误 [40000] [42000]: Error while compiling statement: FAILED: SemanticException table is not partitioned but partition spec exists: {month=null, day=null}

解决方法:

解决办法,在sql语句前面加

SET hive.exec.dynamic.partition = true ; 
SET hive.exec.dynamic.partition.mode = nonstrict;

在这里插入图片描述
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐