【发布时间】:2021-10-29 02:14:44
【问题描述】:
我在 Hive 中有 3 列的表,我想根据特定值划分最后一列(在我的情况下为 200) Hive 表结构:-
ID ,Name ,Value
1,"Jan",800
2,"Mar",200
3,"DEC",350
4,"APR",400
我希望输出为
ID ,Name ,Value
1,"Jan",200
1,"Jan",200
1,"Jan",200
1,"Jan",200
2,"Mar",200
3,"DEC",200
3,"DEC",150
4,"APR",200
4,"APR",200
我尝试使用侧视图爆炸,但没有给我正确的结果
【问题讨论】: