hive
文章平均质量分 76
iteye_8632
这个作者很懒,什么都没留下…
展开
-
hql 查找非group by字段
1.取得非group by 字段 select COLLECT_LIST(event) , uuid from stat_event group by uuid; 2.得到事件流(自定义事件处理)select cid, uuid, account, concat_ws(',', COLLECT_LIST(cast (event AS string) ) ), concat_ws...2015-01-13 17:16:13 · 325 阅读 · 0 评论 -
hql 修改表字段类型
stat_install 表的agent字段原来是int型,现在想改成string类型,使用下面命令: alter table stat_install change agent agent string;2015-01-13 17:19:03 · 2171 阅读 · 1 评论 -
hive表分区字段需要注意的问题
近期项目中使用hive做数据统计,创建了一些hive表,在这个过程中,涉及到了设计分区的问题,简单做个总结,以新增表为例: V1版本:CREATE TABLE IF NOT EXISTS stat_install(uuid string,ver int,version_code ...原创 2015-01-22 18:25:45 · 2134 阅读 · 0 评论