我运行后:
hive> select * from bxdataset where yearofpublication = "2002";
结果是:
MapReduce Jobs Launched:
Job 0: Map: 1
HDFS Read: 9491 HDFS Write: 0 SUCCESS
Total MapReduce CPU Time Spent: 0 msec
OK
Time taken: 9.651 seconds
所以没有任何结果显示。但我很确定至少有一行出版年份是 2002 年。数据类型是 STRING。