select
id,
str_to_map(concat_ws(‘,’,collect_set(concat(substr(repay_time,0,7), ‘:’,round(interest,2)))),’,’,’:’) repay_interest
from 50_repay t
Original: https://www.cnblogs.com/0xcafedaddy/p/9474239.html
Author: 0xcafedaddy
Title: hive中的concat,concat_ws,collect_set用法
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/6863/
转载文章受原作者版权保护。转载请注明原作者出处!