hive - 无法将数据插入 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 中加入表时,我得到了同样的错误。
解决方案
推荐阅读
- swift - 如何获取对象是它们的属性的所有对象?
- python - 从列表列表中查找“n”个最小值及其索引
- javascript - 当我尝试将纬度和经度转换为地址格式时,位置未定义
- python - 检查多个“大”数据帧中是否存在通用组合
- node.js - 客户端发出时如何测试socket.io服务器
- python - 熊猫没有过滤多列上的数据
- python - VScode - Python 扩展 - 更改默认语言
- javascript - 虚拟 DOM 的 diffing 算法是否能确定唯一的区别并修补真实 DOM?
- html - 在输入元素中使用字体真棒图标
- python-3.x - Python BeautifulSoup - 按id抓取时表不返回