Hive中的内部群组

问题描述 投票:1回答:1

您能否帮助构建以下Hive查询(我们需要在单个Hive查询中输出)

我的输入是

enter image description here

我需要以下格式的输出,只有我们一个蜂巢查询

enter image description here

hadoop hive group-by hiveql
1个回答
0
投票
简单聚合将起作用:

select request_uniq, date, sum(click) click_sum from your_table group by request_uniq, date

© www.soinside.com 2019 - 2024. All rights reserved.