hive排序:distribute by 、sort by 、cluster by 、order by 區別

1.背景     hive中有一個store表,字段分別是"商店所屬人標識"(merid),「商戶餘額(money)」,「商店名稱(name)」。求每個法人下屬的商店的餘額按照降序排序。     //merid,money,name     B 10 store_B_4     A 12 store_A_1     A 14 store_A_2     B 15 store_B_1     B 1
相關文章
相關標籤/搜索