摘要: hive里通常通过collect_set和collect_list来进行列转行,其中collect_list为不去重转换,collect_set为去重转换。 创建一个测试表 CREATE table stu_score( stu_id string comment '学号', stu_name st 阅读全文
posted @ 2022-06-30 16:04 玩转大数据 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1.从文件中加载数据建表语句: CREATE TABLE IF NOT EXISTS `test.test1`( `user_id` int, `name` string, `address` string) row format delimited fields terminated by ',' 阅读全文
posted @ 2022-06-30 14:56 玩转大数据 阅读(3404) 评论(0) 推荐(1) 编辑