加载表数据的时候一定要注意分隔符一致
创建表的时候使用的字段分隔符和加载的文本数据里面的分隔符一致,否则加载到表里面的数据为NULL
ps:
创建表结构,使用逗号为字段分隔符。
hive> create table order_info(oid int,oname string,price int,cid int) row format delimited fields terminated by ',' stored as textfile;
加载的文本数据同样为逗号分隔符
欢迎关注我的公众号:小秋的博客
CSDN博客:https://blog.csdn.net/xiaoqiu_cr
github:https://github.com/crr121
联系邮箱:rongchen633@gmail.com
有什么问题可以给我留言噢~