其他分享
首页 > 其他分享> > 重温hive的一些记录和想法

重温hive的一些记录和想法

作者:互联网

  ARRAY,MAP,STRUCT

CREATE TABLE employee(
  name string,
  salary double,
  subor array<string>,
  dedu map<string, double>,
  address struct<street:string, city:string, state:string, zip:int> )
ROW FORMAT DELIMITED
FIELDS TREMINATED BY '\u001'
COLLECTION ITEMS TERMINATED BY ','
MAP KEYS TERMINATED BY ':'
LINES TERMINATED BY '\n'
STORED BY TEXTFILE;

 

  

标签:TERMINATED,u001,DELIMITEDFIELDS,MAP,重温,数据类型,想法,hive,模式
来源: https://www.cnblogs.com/baran/p/15585605.html