create table test_set(
id INT,
name STRING,
hobby ARRAY<STRING>,    //array中元素为String类型
friend MAP<STRING,STRING>,    //map中键和值均为String类型
mark struct<math:int,english:int>   //Struct中元素为Int类型
)
row format delimited fields terminated by ','   //字段之间用','分隔
collection items terminated by '_'     //集合中的元素用'_'分隔
map keys terminated by ':'      //map中键值对之间用':'分隔
lines terminated by '\n       //行之间用'\n'分隔
 

以上是 在数组中插入结构体  map  以及  key:value 的形式.

相关文章:

  • 2021-06-11
  • 2021-05-22
  • 2022-01-12
  • 2022-12-23
  • 2021-06-21
  • 2021-05-17
  • 2021-11-30
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案