Daw-Ins 2021-10-03 11:26 采纳率: 100%
浏览 56
已结题

hadoop hive sql语句报错

tab0表 是load data local inpath 'x' overwrite into table tab0;
将表中的数据简单清洗写入tab1,
然后查询tab1将结果写入tab4报错,直接tab0不报错。
tab0:

create table tab0(
day_id bigint,
sale_nbr string,
buy_nbr string,
cnt int,
round double
)
row format delimited fields terminated by ','
lines terminated by '\n';

tab1:

create table tab1(
day_id string,
sale_nbr string,
buy_nbr string,
cnt int,
round double
 )
row format delimited fields terminated by ','
lines terminated by '\n';

img

img

img

  • 写回答

2条回答 默认 最新

  • 想上天的狗 2021-10-03 11:48
    关注

    day_id类型不同吧,一个bigint,一个String

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 8月15日
  • 已采纳回答 8月7日
  • 修改了问题 10月3日
  • 创建了问题 10月3日