【发布时间】:2021-01-19 11:35:43
【问题描述】:
我的脚本由于处理太多分区的堆空间问题而失败。为避免此问题,我尝试将所有分区插入单个分区,但遇到以下错误
失败:语义异常 [错误 10044]:第 1:23 行无法插入目标表,因为列号/类型不同“2021-01-16”:表 insclause-0 有 78 列,但查询有 79 列.
set hive.exec.dynamic.partition=true;
set mapreduce.reduce.memory.mb=6144;
set mapreduce.reduce.java.opts=-Xmx5g;
set hive.exec.dynamic.partition=true;
insert overwrite table db_temp.travel_history_denorm partition (start_date='2021-01-16')
select * from db_temp.travel_history_denorm_temp_bq
distribute by start_date;```
Can someone please suggest what is the issue, I checked the schema for the tables it is the same. ?
【问题讨论】:
标签: hive hiveql hadoop2 hadoop-partitioning