摘要: 知识点: 格式转换:cast(xxx as int) 按某列分桶某列排序,排序后打标机;例如:求每个地区工资最高的那个人的信息; ROW_NUMBER() OVER(PARTITION BY COLUMN ORDER BY COLUMN) row_number() over(distribute b 阅读全文
posted @ 2018-12-22 20:46 bioamin 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 知识点: substr、concat函数的使用: row_number() over(distribute by year sort by temp desc) #按照年分组,按照tmp去排序 需求:现有hive表temp,其中只有一个字段(temp_record string),每一行代表某一天的 阅读全文
posted @ 2018-12-22 15:46 bioamin 阅读(334) 评论(0) 推荐(0) 编辑