Hive 0.14 and later versions
CREATE TABLE kst (
string1 string,
string2 string,
int1 int,
boolean1 boolean,
long1 bigint,
float1 float,
double1 double,
inner_record1 struct<int_in_inner_record1:int,string_in_inner_record1:string>,
enum1 string,
array1 array<string>,
map1 map<string,string>,
union1 uniontype<float,boolean,string>,
fixed1 binary,
null1 void,
unionnullint int,
bytes1 binary)
PARTITIONED BY (ds string)
STORED AS AVRO;
详见:AvroSerDe;
本文详细介绍了使用Hive创建表的具体语法及各种数据类型的用法,包括字符串、整型、布尔型等基本类型,以及结构体、枚举、数组、映射、联合类型等复杂类型,并说明了如何将表分区存储为Avro格式。

1743

被折叠的 条评论
为什么被折叠?



