hive:使用concat_ws实现 array转string
程序员文章站
2022-04-28 11:59:40
...
array转string:
select * from (
select
collect_list(id) id_array,
concat_ws('',collect_list(id)) id_string, --array转string
origin_id
from(
select
concat('{',id,'}') id,
origin_id --付款通知书id
from ods.ods_awa_finance_income
where origin = 1 --付款通知书
) a
group by origin_id
) s where length(id_string)>8