我正在使用蜂巢工作。今天在创建一些外部表的时候,忘记输入EXTERNAL
关键字,HiveQL 是这样的:
CREATE TABLE year_2012_main (
some BIGINT,
fields BIGINT,
should BIGINT,
beee BIGINT,
here STRING,
buttt STRING,
Iveee STRING,
decide STRING,
tohide STRING,
them BIGINT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
COLLECTION ITEMS TERMINATED BY ' '
MAP KEYS TERMINATED BY ':'
STORED AS TEXTFILE location '/data/content/year_2012_main';
然后我试了一下select count (*) from year_2012_main;
,效果很好。
所以,只是出于好奇,有或没有有什么区别EXTERNAL
?