首页 > 解决方案 > 无法将数据插入 Hive 表

问题描述

我使用以下查询创建了配置单元表:

create table students (name varchar(64), age int, gpa decimal(3, 2));

并使用此查询插入数据:

insert into table students values ('fred flinstone', 445, 1.34);

它没有显示任何错误,但是当我使用查看数据时

select * from students

它给了我以下错误:

Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000)

当我在 Hive 中加入表时,我得到了同样的错误。

标签: hivehiveql

解决方案


推荐阅读