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
相關文章
相關標籤/搜索