hive —— struct 复合结构

在建表时,遇到类型为struct的字段,直接定义为string获取不到,经过定义为struct获取到该字段的完整信息。 字段类型为: web struct内部的数据经过 DOT(.)来存储,好比:在表中有一列a 的类型为 struct{b string,c string},则咱们能够经过指定a.b , a.c 来访问域b和c。 structapp hive> create table test
相关文章
相关标签/搜索