随笔分类 - Hive
摘要:一、Hive 窗口函数(OLAP函数\分析函数) 窗口函数最重要的关键字是 partition by 和 order by 具体用法如下:over (parttion by xxx order by xxx) 1、SUM、AVG、MIN、MAX 数据: cookie1,2018-04-10,1 co
阅读全文
摘要:一、DDL操作 1、修改表 1、1增加分区 --一次添加一个分区 alter table tablename add partition (dt='20000202') location '要填在的表在hafs上的实际路径'; --一次添加多个分区 alter table tabelname add
阅读全文

浙公网安备 33010602011771号