hive导入数据成功,但是查询显示NULL,且未报错
源数据
1 java 901 c 781 python 911 hadoop 802 java 752 c 762 python 802 hadoop 933 java 983 c 743 python 893 hadoop 915 java 936 c 767 python 878 hadoop 88
建表语句
create table course_common(
id int,
name string,
score int
)
row format delimited fields terminated by '\t'
lines terminated by '\n';
原因是:
字段与字段之间是制表符,键盘上是Tab键,而不是空格键,将源数据中的空格换成Tab键即可