hive —— struct 复合结构
在建表时,遇到类型为struct的字段,直接定义为string获取不到,通过定义为struct获取到该字段的完整信息。
字段类型为:
struct内部的数据通过 DOT(.)来存储,比如:在表中有一列a 的类型为 struct{b string,c string},则我们可以通过指定a.b , a.c 来访问域b和c。
struct
hive> create table te...
原创
2018-09-07 14:11:24 ·
7450 阅读 ·
0 评论