基础数据类型 tinyint 1 smallint 2 int 4 bigint 8 String 可变 boolean 1 double 8 float 4 timestamp 时间格式2019-8-8 12:11:00 binary 字节数组 java中有的数据类型在hive中没有: long、byte、char、short 复杂数据类型 array:字段名 Array<double> map:字段名 map<String,double> struct:封装对象的 数组array举例: //创建表 create table if not exists arr1( name string, score Array<int> ) row format delimited fields terminated by '\t' collection items terminated by ',' ; //加入数据 zhangsan 90,80,99 lisi 80,99,85 //查询 select a.name,a.score[0],a.score[2] where a.score[1]>80 //结果 zhangsan 80 99 //数组越界不报错 a.score[3] = null 集合map: //创建表 create table if not exists map1( name string, scor