hive关于一个表的操作
1,创建表格
create table stu(name string,hobby array<string>,scores map<string,double>)
row format delimited
fields terminated by ','
collection items terminated by '-'
MAP KEYS TERMINATED BY ':';
2,导入数据
数据:
zs,drink-eat,english:90-math:66
ls,drink
原创
2021-12-08 22:15:02 ·
1634 阅读 ·
0 评论