HIVE- 各年逐月累加函数

select
year_flag
,month_flag
,field
,SUM(field) OVER (PARTITION BY year_flag ORDER BY month_flag)
from table
;

posted @ 2022-02-17 17:41  冉溪  阅读(474)  评论(0编辑  收藏  举报