hive中的concat,concat_ws,collect_set用法

select
id,
str_to_map(concat_ws(',',collect_set(concat(substr(repay_time,0,7), ':',round(interest,2)))),',',':') repay_interest
from 50_repay t
posted @ 2018-08-14 13:57  0xcafedaddy  阅读(3495)  评论(0编辑  收藏  举报